X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77dcaef44c19d43a3944affbfcf2d037dc11aba5..947a41edee95df9e75cce0452277e2a00a8b5fa5:/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