minor changes

This commit is contained in:
David Cook
2013-06-28 17:04:58 +10:00
parent 3007549aa5
commit 5b58351b73
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base
sidebar_distributors_limit = 5 #set false to disable TODO: move to app config
sidebar_suppliers_limit = 5
@sidebar_distributors = Enterprise.is_distributor.with_distributed_active_products_on_hand.by_name.limit(sidebar_distributors_limit)
@total_distributors = Enterprise.is_distributor.with_distributed_active_products_on_hand.by_name.distinct_count
@total_distributors = Enterprise.is_distributor.with_distributed_active_products_on_hand.distinct_count
@sidebar_suppliers = Enterprise.is_primary_producer.with_supplied_active_products_on_hand.limit(sidebar_suppliers_limit)
@total_suppliers = Enterprise.is_primary_producer.with_supplied_active_products_on_hand.distinct_count
end

View File

@@ -48,7 +48,7 @@ scenario "viewing a list of distributors (with active products) in the sidebar w
page.should_not have_selector 'a', :text => d3.name #has no products on hand
# And I shouldn't see 'xx more'
page.should_not have_selector '#distributor_filter span.filter_more', :text => 'more'
page.should_not have_selector '#distributor_filter span.filter_more'
# And I shouldn't see a browse distributors button
page.should have_selector "#distributor_filter input[value='Browse All Distributors']"

View File

@@ -30,7 +30,7 @@ feature %q{
page.should_not have_selector 'a', :text => s3.name #has no products on hand
# And I shouldn't see 'xx more'
page.should_not have_selector '#supplier_filter span.filter_more', :text => 'more'
page.should_not have_selector '#supplier_filter span.filter_more'
# And I shouldn't see a browse suppliers button
page.should have_selector "#supplier_filter input[value='Browse All Suppliers']"