X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f7bd08f4a8a6a626a0c1d7ed60f2dcd6a6801e8..3238bf567c5c8a0e807343588b8f38f86d65c1cd:/test/controllers/user_preference_controller_test.rb diff --git a/test/controllers/user_preference_controller_test.rb b/test/controllers/user_preference_controller_test.rb index 4966ae748..752ec56cb 100644 --- a/test/controllers/user_preference_controller_test.rb +++ b/test/controllers/user_preference_controller_test.rb @@ -1,4 +1,4 @@ -require 'test_helper' +require "test_helper" class UserPreferenceControllerTest < ActionController::TestCase fixtures :users, :user_preferences @@ -36,7 +36,7 @@ class UserPreferenceControllerTest < ActionController::TestCase assert_response :unauthorized, "should be authenticated" # authenticate as a user with no preferences - basic_authorization("test@example.com", "test") + basic_authorization("moderator@example.com", "test") # try the read again get :read @@ -45,7 +45,7 @@ class UserPreferenceControllerTest < ActionController::TestCase assert_select "preference", :count => 0 end end - + # authenticate as a user with preferences basic_authorization("test@openstreetmap.org", "test")