X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/63221710a4b9ce4c282aab751b35581908e45852..ef85e8c7b346588a5e6ad0df7ddeb1046977c61a:/test/models/trace_test.rb diff --git a/test/models/trace_test.rb b/test/models/trace_test.rb index fc5064ad7..9682d6b28 100644 --- a/test/models/trace_test.rb +++ b/test/models/trace_test.rb @@ -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