Covering the case of an entry not being found. More diary entry tests.

This commit is contained in:
Shaun McDonald 2008-11-12 18:48:58 +00:00
parent ad9e48120a
commit 797cbaab1e
4 changed files with 57 additions and 9 deletions

View file

@ -38,6 +38,8 @@ class DiaryEntryController < ApplicationController
redirect_to :controller => 'diary_entry', :action => 'view', :id => params[:id]
end
end
rescue ActiveRecord::RecordNotFound
render :action => "no_such_entry", :status => :not_found
end
def comment