]> git.openstreetmap.org Git - rails.git/commitdiff
Fix invalid CSS selectors
authorTom Hughes <tom@compton.nu>
Sat, 10 Jan 2015 15:19:28 +0000 (15:19 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 10 Jan 2015 15:58:30 +0000 (15:58 +0000)
test/controllers/changeset_controller_test.rb

index 230c1f0145831ee4ba1e6e57ddd01b57b8897f58..9a3626d3479c159b33685649480c4f03f7c3987d 100644 (file)
@@ -425,7 +425,7 @@ EOF
       "can't upload a simple valid creation to changeset: #{@response.body}"
 
     # check the returned payload
-    assert_select "diffResult[version=#{API_VERSION}][generator=\"OpenStreetMap server\"]", 1
+    assert_select "diffResult[version='#{API_VERSION}'][generator='OpenStreetMap server']", 1
     assert_select "diffResult>node", 1
     assert_select "diffresult>way", 1
     assert_select "diffResult>relation", 1
@@ -722,7 +722,7 @@ EOF
       "can't upload a complex diff to changeset: #{@response.body}"
 
     # check the returned payload
-    assert_select "diffResult[version=#{API_VERSION}][generator=\"#{GENERATOR}\"]", 1
+    assert_select "diffResult[version='#{API_VERSION}'][generator='#{GENERATOR}']", 1
     assert_select "diffResult>node", 1
     assert_select "diffResult>way", 1
     assert_select "diffResult>relation", 1
@@ -954,7 +954,7 @@ EOF
 
     # check the response is well-formed
     assert_select "diffResult>node", 3
-    assert_select "diffResult>node[old_id=-1]", 3
+    assert_select "diffResult>node[old_id='-1']", 3
   end
 
   ##
@@ -1677,7 +1677,7 @@ EOF
 
     assert_select "osm>changeset[id='#{changeset.id}']", 1
     assert_select "osm>changeset>tag", 2
-    assert_select "osm>changeset>tag[k=tagtesting][v=valuetesting]", 1
+    assert_select "osm>changeset>tag[k='tagtesting'][v='valuetesting']", 1
   end
 
   ##