]> 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 8bae041fcae9152d08981c21a813eef5ee863c9e..1497040f04a22ddd946ca101886183054fc2bc04 100644 (file)
@@ -1,5 +1,4 @@
 require "test_helper"
-require "digest"
 require "minitest/mock"
 
 class TraceTest < ActiveSupport::TestCase
@@ -272,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