mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
minor changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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']"
|
||||
|
||||
@@ -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']"
|
||||
|
||||
Reference in New Issue
Block a user