X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/98184dfb9cacc74ac5bcb91a41a2d5804b3f4f7d..dc2a2c8ebd1a11e4a64555fda22c6859a51defff:/test/controllers/redactions_controller_test.rb diff --git a/test/controllers/redactions_controller_test.rb b/test/controllers/redactions_controller_test.rb index 44a760694..7e9170a2c 100644 --- a/test/controllers/redactions_controller_test.rb +++ b/test/controllers/redactions_controller_test.rb @@ -1,5 +1,5 @@ -require 'test_helper' -require 'redactions_controller' +require "test_helper" +require "redactions_controller" class RedactionsControllerTest < ActionController::TestCase api_fixtures @@ -57,9 +57,9 @@ class RedactionsControllerTest < ActionController::TestCase # remove all elements from the redaction redaction = redactions(:example) - redaction.old_nodes.each { |n| n.redaction = nil; n.save! } - redaction.old_ways.each { |w| w.redaction = nil; w.save! } - redaction.old_relations.each { |r| r.redaction = nil; r.save! } + redaction.old_nodes.each { |n| n.update!(:redaction => nil) } + redaction.old_ways.each { |w| w.update!(:redaction => nil) } + redaction.old_relations.each { |r| r.update!(:redaction => nil) } delete :destroy, :id => redaction.id assert_response :redirect