X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d4776b59a125152b298b206abe6c3dfdbe00afd8..02d9584fc5152df85442dbbb746122d6d1acd817:/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