From 38c0552362e52844ddf17ea88e9e0fa6f223850e Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 21 Jun 2013 10:47:04 +1000 Subject: [PATCH] test 'more' count --- spec/features/consumer/distributors_spec.rb | 4 ++-- spec/features/consumer/suppliers_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/consumer/distributors_spec.rb b/spec/features/consumer/distributors_spec.rb index 8d738120c2..0f0ce829ea 100644 --- a/spec/features/consumer/distributors_spec.rb +++ b/spec/features/consumer/distributors_spec.rb @@ -77,8 +77,8 @@ scenario "viewing a list of distributors (with active products) in the sidebar w # Then I should see a list containing 5 distributors that have products in stock page.should have_selector '#distributor_filter li a', :count => 5 - # And I should see 'xx more' - page.should have_selector '#distributor_filter span.filter_more', :text => 'more' + # And I should see '1 more' + page.should have_selector '#distributor_filter span.filter_more', :text => '1 more' # And I should see a browse distributors button page.should have_selector "#distributor_filter input[value='Browse All Distributors']" diff --git a/spec/features/consumer/suppliers_spec.rb b/spec/features/consumer/suppliers_spec.rb index ff7b2caecb..6abc642aac 100644 --- a/spec/features/consumer/suppliers_spec.rb +++ b/spec/features/consumer/suppliers_spec.rb @@ -59,8 +59,8 @@ feature %q{ # Then I should see a list containing 5 suppliers that have products in stock page.should have_selector '#supplier_filter li a', :count => 5 - # And I should see 'xx more' - page.should have_selector '#supplier_filter span.filter_more', :text => 'more' + # And I should see '1 more' + page.should have_selector '#supplier_filter span.filter_more', :text => '1 more' # And I should see a browse suppliers button page.should have_selector "#supplier_filter input[value='Browse All Suppliers']"