X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/083a8bb043c3ea0b0f52d5c0d3abe213624e1038..c809f79912a3b998ddf3a21973582254db564183:/test/functional/user_preference_controller_test.rb diff --git a/test/functional/user_preference_controller_test.rb b/test/functional/user_preference_controller_test.rb index 871f9000b..f5369387b 100644 --- a/test/functional/user_preference_controller_test.rb +++ b/test/functional/user_preference_controller_test.rb @@ -120,9 +120,9 @@ class UserPreferenceControllerTest < ActionController::TestCase content "" put :update end - assert_response :not_acceptable + assert_response :bad_request assert_equal "text/plain", @response.content_type - assert_equal "OH NOES! CAN HAS UNIQUE KEYS?", @response.body + assert_equal "Duplicate preferences with key key", @response.body assert_equal "new_value", UserPreference.find(1, "key").v # try a put with invalid content