X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5a0ba2e81270bf8d6f7bd65cfdb54ea81bb4942d..6c202448ade514cd5ecca7175555011c851735e9:/test/models/redaction_test.rb?ds=sidebyside diff --git a/test/models/redaction_test.rb b/test/models/redaction_test.rb index 2e629867b..fb232b81b 100644 --- a/test/models/redaction_test.rb +++ b/test/models/redaction_test.rb @@ -1,5 +1,4 @@ require "test_helper" -require "osm" class RedactionTest < ActiveSupport::TestCase def test_cannot_redact_current @@ -28,7 +27,7 @@ class RedactionTest < ActiveSupport::TestCase r = create(:redaction) assert_equal(false, node_v1.redacted?, "Expected node to not be redacted already.") - assert_nothing_raised(OSM::APICannotRedactError) do + assert_nothing_raised do node_v1.redact!(r) end assert_equal(true, node_v1.redacted?, "Expected node version 1 to be redacted after redact! call.")