]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/user_roles_controller_test.rb
Fix test failures
[rails.git] / test / functional / user_roles_controller_test.rb
index e942cd0fafc1305eb3d8ecbee85f270c7ee4c63f..4e4bd6da72a3e9b523b507dfd48dfec1df34c339 100644 (file)
@@ -42,7 +42,7 @@ class UserRolesControllerTest < ActionController::TestCase
       end
       assert_response :not_found
       assert_template "user/no_such_user"
-      assert_select "h2", "The user non_existent_user does not exist"
+      assert_select "h1", "The user non_existent_user does not exist"
 
       # Granting a role from a user that already has it should fail
       assert_no_difference "UserRole.count" do
@@ -100,7 +100,7 @@ class UserRolesControllerTest < ActionController::TestCase
       end
       assert_response :not_found
       assert_template "user/no_such_user"
-      assert_select "h2", "The user non_existent_user does not exist"
+      assert_select "h1", "The user non_existent_user does not exist"
 
       # Removing a role from a user that doesn't have it should fail
       assert_no_difference "UserRole.count" do