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