]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/trace_test.rb
Make the storage service to use for avatars configurable
[rails.git] / test / models / trace_test.rb
index fc5064ad7d9805443b9a4db11c9ac53a54bd04d6..9682d6b288a0a3958f5bfa15e0daab3c68dd12c7 100644 (file)
@@ -77,15 +77,15 @@ class TraceTest < ActiveSupport::TestCase
   def test_validations
     trace_valid({})
     trace_valid({ :user_id => nil }, :valid => false)
-    trace_valid(:name => "a" * 255)
+    trace_valid({ :name => "a" * 255 })
     trace_valid({ :name => "a" * 256 }, :valid => false)
     trace_valid({ :description => nil }, :valid => false)
-    trace_valid(:description => "a" * 255)
+    trace_valid({ :description => "a" * 255 })
     trace_valid({ :description => "a" * 256 }, :valid => false)
-    trace_valid(:visibility => "private")
-    trace_valid(:visibility => "public")
-    trace_valid(:visibility => "trackable")
-    trace_valid(:visibility => "identifiable")
+    trace_valid({ :visibility => "private" })
+    trace_valid({ :visibility => "public" })
+    trace_valid({ :visibility => "trackable" })
+    trace_valid({ :visibility => "identifiable" })
     trace_valid({ :visibility => "foo" }, :valid => false)
   end