X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/65e8bbd5f896f70b0210e7ef36430d9273191b68..cb7340a94ab2673082d07885813ec719e116efe0:/test/models/trace_test.rb diff --git a/test/models/trace_test.rb b/test/models/trace_test.rb index 2ab1a3d5a..1497040f0 100644 --- a/test/models/trace_test.rb +++ b/test/models/trace_test.rb @@ -271,8 +271,7 @@ class TraceTest < ActiveSupport::TestCase end def trace_valid(attrs, result = true) - entry = build(:trace) - entry.assign_attributes(attrs) + entry = build(:trace, attrs) assert_equal result, entry.valid?, "Expected #{attrs.inspect} to be #{result}" end