Skip to content

Commit

Permalink
Simplify test - tags aren't relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Jul 13, 2012
1 parent 9f13cf1 commit 3c45751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ def test_node_fp_bug2

# The bot tried redacting v3 in production, without a changeset. Why?
def test_node_wrong_redaction
history = [OSM::Node[[49.8898997,1.9707186], :id => 1, :changeset => 1, :version => 1, "name" => "Caps-en-something", "place" => "village", "is_in" => "Europe, France"], #agreed
OSM::Node[[49.8898998,1.9707185], :id => 1, :changeset => 3, :version => 2, "name" => "Camps-en-something", "place" => "village", "is_in" => "Europe, France"], #declined
OSM::Node[[49.8898998,1.9707185], :id => 1, :changeset => 2, :version => 3, "name" => "Camps-en-something", "place" => "village", "is_in" => "Europe, France", "population" => "42", "addr:postcode" => "80540", "ref:INSEE" => "80165"]] #agreed
history = [OSM::Node[[49.8898997,1.9707186], :id => 1, :changeset => 1, :version => 1], #agreed
OSM::Node[[49.8898998,1.9707185], :id => 1, :changeset => 3, :version => 2], #declined
OSM::Node[[49.8898998,1.9707185], :id => 1, :changeset => 2, :version => 3]] #agreed
bot = ChangeBot.new(@db)
actions = bot.action_for(history)
# Not sure what it should actually be doing, but certainly not redacting v3
Expand Down

0 comments on commit 3c45751

Please sign in to comment.