]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/changeset_controller_test.rb
Test titles in changeset feed
[rails.git] / test / controllers / changeset_controller_test.rb
index 5b1dfdbe43afb7c062f5c2f0c975f85199d47c63..4db952ab9d4d4300e27d9c40cab9b5de4d739987 100644 (file)
@@ -2339,10 +2339,11 @@ EOF
     assert changesets.size <= 20
 
     assert_select "feed", :count => [changesets.size, 1].min do
-      assert_select "entry", :count => changesets.size
+      assert_select "> title", :count => 1, :text => /^Changesets/
+      assert_select "> entry", :count => changesets.size
 
       changesets.each do |changeset|
-        assert_select "entry > id", changeset_url(:id => changeset.id)
+        assert_select "entry > id", changeset_url(:id => changeset.id)
       end
     end
   end