]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_roles_test.rb
On hover, change border to a subtle darker orange, increase strokeWidth
[rails.git] / test / integration / user_roles_test.rb
index 000ea0316082041096b216301e5c3a81d897facf..7001abd3dc9c2a30c2860bf416a0be5ec682daea 100644 (file)
@@ -33,7 +33,7 @@ class UserRolesTest < ActionDispatch::IntegrationTest
 
     target_user = create(:user)
     post "/user/#{ERB::Util.u(target_user.display_name)}/role/#{role}/#{action}"
-    assert_redirected_to :controller => "user", :action => "view", :display_name => target_user.display_name
+    assert_redirected_to user_path(target_user)
 
     reset!
   end
@@ -51,7 +51,7 @@ class UserRolesTest < ActionDispatch::IntegrationTest
 
     target_user = create(:user)
     post "/user/#{ERB::Util.u(target_user.display_name)}/role/#{role}/#{action}"
-    assert_redirected_to :controller => "user", :action => "view", :display_name => target_user.display_name
+    assert_redirected_to user_path(target_user)
 
     reset!
   end