X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd6f00b069af5a7b87227ea4c3401dc461d7311a..80903324cfabf9330973b06e68b423f38fc13522:/test/unit/user_preference_test.rb 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