Commit 2924c74c912326ca7924e9cb0eaad618304d60d8
1 parent
9e4aa232
Exists in
master
and in
22 other branches
Remove warnings in calls to assert_redirect_to
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/profile_editor_controller_test.rb
| ... | ... | @@ -52,7 +52,7 @@ class ProfileEditorControllerTest < ActionController::TestCase |
| 52 | 52 | should 'saving profile info' do |
| 53 | 53 | person = profile |
| 54 | 54 | post :edit, :profile => profile.identifier, :profile_data => { 'name' => 'new person', 'contact_information' => 'new contact information', 'address' => 'new address', 'sex' => 'female' } |
| 55 | - assert_redirected_to :action => 'index' | |
| 55 | + assert_redirected_to :controller => 'profile_editor', :action => 'index' | |
| 56 | 56 | person = Person.find(person.id) |
| 57 | 57 | assert_equal 'new person', person.name |
| 58 | 58 | assert_equal 'new contact information', person.contact_information |
| ... | ... | @@ -82,7 +82,7 @@ class ProfileEditorControllerTest < ActionController::TestCase |
| 82 | 82 | person = profile |
| 83 | 83 | post :edit, :profile => profile.identifier, :profile_data => {:category_ids => [cat2.id]} |
| 84 | 84 | assert_response :redirect |
| 85 | - assert_redirected_to :action => 'index' | |
| 85 | + assert_redirected_to :controller => 'profile_editor', :action => 'index' | |
| 86 | 86 | assert_includes person.categories, cat2 |
| 87 | 87 | end |
| 88 | 88 | ... | ... |