]> git.openstreetmap.org Git - rails.git/commitdiff
Fix invalid CSS selectors
authorTom Hughes <tom@compton.nu>
Sat, 10 Jan 2015 17:38:32 +0000 (17:38 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 10 Jan 2015 17:45:10 +0000 (17:45 +0000)
test/controllers/changeset_controller_test.rb
test/controllers/diary_entry_controller_test.rb

index 9a3626d3479c159b33685649480c4f03f7c3987d..ff987b6e9c9c6610082f92750e5a1c831def9f63 100644 (file)
@@ -427,7 +427,7 @@ EOF
     # check the returned payload
     assert_select "diffResult[version='#{API_VERSION}'][generator='OpenStreetMap server']", 1
     assert_select "diffResult>node", 1
-    assert_select "diffresult>way", 1
+    assert_select "diffResult>way", 1
     assert_select "diffResult>relation", 1
 
     # inspect the response to find out what the new element IDs are
@@ -633,7 +633,7 @@ EOF
     # check the returned payload
     assert_select "diffResult[version='#{API_VERSION}'][generator='OpenStreetMap server']", 1
     assert_select "diffResult>node", 1
-    assert_select "diffresult>way", 1
+    assert_select "diffResult>way", 1
     assert_select "diffResult>relation", 1
 
     # parse the response
index ad3d6787b1aea7581ffbbf1cf5f48fe0979f58c8..ae978e6f93b04ec81d764e7d7e17a3a16f991254 100644 (file)
@@ -177,7 +177,7 @@ class DiaryEntryControllerTest < ActionController::TestCase
       # This next line won't work if the text has been run through the htmlize function
       # due to formatting that could be introduced
       assert_select "p", :text => /#{new_body}/, :count => 1
-      assert_select "abbr[class=geo][title=#{number_with_precision(new_latitude, :precision => 4)}; #{number_with_precision(new_longitude, :precision => 4)}]", :count => 1
+      assert_select "abbr[class='geo'][title='#{number_with_precision(new_latitude, :precision => 4)}; #{number_with_precision(new_longitude, :precision => 4)}']", :count => 1
       # As we're not logged in, check that you cannot edit
       #print @response.body
       assert_select "a[href='/user/#{entry.user.display_name}/diary/#{entry.id}/edit']", :text => "Edit this entry", :count => 1
@@ -196,9 +196,9 @@ class DiaryEntryControllerTest < ActionController::TestCase
       # This next line won't work if the text has been run through the htmlize function
       # due to formatting that could be introduced
       assert_select "p", :text => /#{new_body}/, :count => 1
-      assert_select "abbr[class=geo][title=#{number_with_precision(new_latitude, :precision => 4)}; #{number_with_precision(new_longitude, :precision => 4)}]", :count => 1
+      assert_select "abbr[class=geo][title='#{number_with_precision(new_latitude, :precision => 4)}; #{number_with_precision(new_longitude, :precision => 4)}']", :count => 1
       # As we're not logged in, check that you cannot edit
-      assert_select "li[class=hidden show_if_user_#{entry.user.id}]", :count => 1 do
+      assert_select "li[class='hidden show_if_user_#{entry.user.id}']", :count => 1 do
         assert_select "a[href='/user/#{entry.user.display_name}/diary/#{entry.id}/edit']", :text => "Edit this entry", :count => 1
       end
     end