- n = nodes(:node_with_versions_v3)
- r = redactions(:example)
- assert_equal(false, n.redacted?, "Expected node to not be redacted already.")
- assert_nothing_raised(OSM::APICannotRedactError) do
- n.redact!(r)
+ node = create(:node, :with_history, :version => 2)
+ node_v1 = node.old_nodes.find_by(:version => 1)
+ node_v2 = node.old_nodes.find_by(:version => 2)
+ r = create(:redaction)
+
+ assert_equal(false, node_v1.redacted?, "Expected node to not be redacted already.")
+ assert_nothing_raised do
+ node_v1.redact!(r)