]> git.openstreetmap.org Git - rails.git/commitdiff
Test titles in changeset feed
authorTom Hughes <tom@compton.nu>
Mon, 14 Mar 2016 21:18:26 +0000 (21:18 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 14 Mar 2016 21:18:26 +0000 (21:18 +0000)
.rubocop_todo.yml
test/controllers/changeset_controller_test.rb

index 651691b848fff48c9a6792a96f3324cfb585f8f1..191e82b39b4389e0a115941fdc52a6a2de7ec639 100644 (file)
@@ -66,7 +66,7 @@ Metrics/BlockNesting:
 # Offense count: 62
 # Configuration parameters: CountComments.
 Metrics/ClassLength:
-  Max: 1653
+  Max: 1654
 
 # Offense count: 67
 Metrics/CyclomaticComplexity:
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