X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..84f6029ead0aef7a85b9690d7c6dec65782d94b1:/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