]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/user_preference_test.rb
Convert the languages fixtures to a factory
[rails.git] / test / models / user_preference_test.rb
index ee2dbf2d8ca0b66ba6873c2d1ec6a0bb4427fb2a..d3400bc9d4d8cc2bdba5bf68109435987b0fb1e2 100644 (file)
@@ -20,7 +20,7 @@ class UserPreferenceTest < ActiveSupport::TestCase
     new_up.k = up.k
     new_up.v = "some other value"
     assert_not_equal new_up.v, up.v
-    assert_raise (ActiveRecord::RecordNotUnique) { new_up.save }
+    assert_raise(ActiveRecord::RecordNotUnique) { new_up.save }
   end
 
   def test_check_valid_length