]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/user_preference_controller_test.rb
Use the standard ruby instance_methods call
[rails.git] / test / functional / user_preference_controller_test.rb
index 871f9000b04171a0c5dfec09bff9decd4b27d212..f5369387b173a46e9b9069e9bc347dcb527d8bf7 100644 (file)
@@ -120,9 +120,9 @@ class UserPreferenceControllerTest < ActionController::TestCase
       content "<osm><preferences><preference k='key' v='value'/><preference k='key' v='newer_value'/></preferences></osm>"
       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