X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6ca22de4f2c68e4b14a6e2f0938a8657c33adc31..71cbb003f8a8db1b077ebeefb776033a3e31ee9a:/test/controllers/diary_entries_controller_test.rb diff --git a/test/controllers/diary_entries_controller_test.rb b/test/controllers/diary_entries_controller_test.rb index 426bc3851..b1f2216c7 100644 --- a/test/controllers/diary_entries_controller_test.rb +++ b/test/controllers/diary_entries_controller_test.rb @@ -726,7 +726,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase :params => { :display_name => user.display_name, :id => diary_entry.id }, :session => { :user => user } assert_response :redirect - assert_redirected_to :action => :show, :display_name => user.display_name, :id => diary_entry.id + assert_redirected_to :controller => :errors, :action => :forbidden assert_equal true, DiaryEntry.find(diary_entry.id).visible # Finally try as an administrator @@ -754,7 +754,7 @@ class DiaryEntriesControllerTest < ActionController::TestCase :params => { :display_name => user.display_name, :id => diary_entry.id, :comment => diary_comment.id }, :session => { :user => user } assert_response :redirect - assert_redirected_to :action => :show, :display_name => user.display_name, :id => diary_entry.id + assert_redirected_to :controller => :errors, :action => :forbidden assert_equal true, DiaryComment.find(diary_comment.id).visible # Finally try as an administrator