- # test the redaction of an old version of a way, while not being
- # authorised.
- def test_redact_way_unauthorised
+ # test that, even as moderator, the current version of a way
+ # can't be redacted.
+ def test_redact_way_current_version
- # test that, even as moderator, the current version of a way
- # can't be redacted.
- def test_redact_way_current_version
+ # test the redaction of an old version of a way, while not being
+ # authorised.
+ def test_redact_way_unauthorised
# test the unredaction of an old version of a way, while being
# authorised as a moderator.
def test_unredact_way_moderator
# test the unredaction of an old version of a way, while being
# authorised as a moderator.
def test_unredact_way_moderator
way = create(:way, :with_history, :version => 2)
old_way = way.old_ways.find_by(:version => 1)
old_way.redact!(create(:redaction))
way = create(:way, :with_history, :version => 2)
old_way = way.old_ways.find_by(:version => 1)
old_way.redact!(create(:redaction))