X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1f8a68371ad34594cce4aadf5fef229588fd4ddc..5b2d2ff2f0482c56b6e8541bab6de84a940b0a82:/test/unit/user_preference_test.rb?ds=sidebyside diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb index df9e1e9b2..d95989a4f 100644 --- a/test/unit/user_preference_test.rb +++ b/test/unit/user_preference_test.rb @@ -20,7 +20,7 @@ class UserPreferenceTest < ActiveSupport::TestCase newUP.k = up.k newUP.v = "some other value" assert_not_equal newUP.v, up.v - assert_raise (ActiveRecord::StatementInvalid) {newUP.save} + assert_raise (ActiveRecord::RecordNotUnique) {newUP.save} end def test_check_valid_length