From 7d7d6da8b56295ece9ddabff29ce319f5c75c33b Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 22 Feb 2011 10:34:42 -0800 Subject: [PATCH] [#5482] Add tests for the grouping counts --- test/integration/issue_filtering_test.rb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/integration/issue_filtering_test.rb b/test/integration/issue_filtering_test.rb index 85015ad..71a0544 100644 --- a/test/integration/issue_filtering_test.rb +++ b/test/integration/issue_filtering_test.rb @@ -33,11 +33,15 @@ class IssueFilteringTest < ActionController::IntegrationTest assert_response :success assert_select "tr.group" do - assert_select "td", :text => /None/ + assert_select "td", :text => /None/ do + assert_select "span.count", "(1)" + end end assert_select "tr.group" do - assert_select "td", :text => Regexp.new(@deliverable.title) + assert_select "td", :text => Regexp.new(@deliverable.title) do + assert_select "span.count", "(1)" + end end end @@ -57,11 +61,15 @@ class IssueFilteringTest < ActionController::IntegrationTest assert_response :success assert_select "tr.group" do - assert_select "td", :text => /None/ + assert_select "td", :text => /None/ do + assert_select "span.count", "(1)" + end end assert_select "tr.group" do - assert_select "td", :text => Regexp.new(@contract.name) + assert_select "td", :text => Regexp.new(@contract.name) do + assert_select "span.count", "()" + end end end