]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/trace_test.rb
Replace attr_accessible with strong parameters
[rails.git] / test / unit / trace_test.rb
index b8cf6b88ada7f25bccfee006098ef3037fc63404..f840d6c5c545306e522f1bd960296f1319e9dcbf 100644 (file)
@@ -84,8 +84,8 @@ private
   end
 
   def trace_valid(attrs, result = true)
-    entry = Trace.new(gpx_files(:public_trace_file).attributes, :without_protection => true)
-    entry.assign_attributes(attrs, :without_protection => true)
+    entry = Trace.new(gpx_files(:public_trace_file).attributes)
+    entry.assign_attributes(attrs)
     assert_equal result, entry.valid?, "Expected #{attrs.inspect} to be #{result}"
   end
 end