]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/trace_test.rb
Localisation updates from https://translatewiki.net.
[rails.git] / test / models / trace_test.rb
index 2ab1a3d5a4da50c3e770b1183c30d0b5de2f6c07..1497040f04a22ddd946ca101886183054fc2bc04 100644 (file)
@@ -271,8 +271,7 @@ class TraceTest < ActiveSupport::TestCase
   end
 
   def trace_valid(attrs, result = true)
   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
 
     assert_equal result, entry.valid?, "Expected #{attrs.inspect} to be #{result}"
   end