# 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))