X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e660e609661edadc1ed5ad49d6e83e936b2f91cd..f53ae6696658db8476b380fb39e376186133a440:/test/unit/trace_test.rb?ds=sidebyside diff --git a/test/unit/trace_test.rb b/test/unit/trace_test.rb index b8cf6b88a..f840d6c5c 100644 --- a/test/unit/trace_test.rb +++ b/test/unit/trace_test.rb @@ -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