X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b095b59d5e0ee805e49980af80b21bd1acff1345..eaf4b32a7f6bf0cdc47dfc0c8b5ddb3358110ee4:/test/controllers/redactions_controller_test.rb?ds=sidebyside 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