X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/baf10cd39289cd7e94a819305e46f43e85a136c6..4bb9f96133e04872739b7f40034521b5b4de6a2d:/test/controllers/way_controller_test.rb diff --git a/test/controllers/way_controller_test.rb b/test/controllers/way_controller_test.rb index 33d9b4579..ee6833889 100644 --- a/test/controllers/way_controller_test.rb +++ b/test/controllers/way_controller_test.rb @@ -1,5 +1,5 @@ -require 'test_helper' -require 'way_controller' +require "test_helper" +require "way_controller" class WayControllerTest < ActionController::TestCase api_fixtures @@ -369,8 +369,8 @@ class WayControllerTest < ActionController::TestCase # add an identical tag to the way tag_xml = XML::Node.new("tag") - tag_xml['k'] = current_way_tags(:t1).k - tag_xml['v'] = current_way_tags(:t1).v + tag_xml["k"] = current_way_tags(:t1).k + tag_xml["v"] = current_way_tags(:t1).v # add the tag into the existing xml way_xml = current_ways(:visible_way).to_xml @@ -388,8 +388,8 @@ class WayControllerTest < ActionController::TestCase # add an identical tag to the way tag_xml = XML::Node.new("tag") - tag_xml['k'] = current_way_tags(:t1).k - tag_xml['v'] = current_way_tags(:t1).v + tag_xml["k"] = current_way_tags(:t1).k + tag_xml["v"] = current_way_tags(:t1).v # add the tag into the existing xml way_xml = current_ways(:visible_way).to_xml @@ -412,8 +412,8 @@ class WayControllerTest < ActionController::TestCase # create duplicate tag tag_xml = XML::Node.new("tag") - tag_xml['k'] = "i_am_a_duplicate" - tag_xml['v'] = "foobar" + tag_xml["k"] = "i_am_a_duplicate" + tag_xml["v"] = "foobar" # add the tag into the existing xml way_xml = current_ways(:visible_way).to_xml @@ -433,8 +433,8 @@ class WayControllerTest < ActionController::TestCase # create duplicate tag tag_xml = XML::Node.new("tag") - tag_xml['k'] = "i_am_a_duplicate" - tag_xml['v'] = "foobar" + tag_xml["k"] = "i_am_a_duplicate" + tag_xml["v"] = "foobar" # add the tag into the existing xml way_xml = current_ways(:visible_way).to_xml @@ -519,7 +519,7 @@ class WayControllerTest < ActionController::TestCase ## # update the changeset_id of a node element def update_changeset(xml, changeset_id) - xml_attr_rewrite(xml, 'changeset', changeset_id) + xml_attr_rewrite(xml, "changeset", changeset_id) end ##