Commit 5c2e6a15bc8e5ab89a8490a35ee34096c569d1bd

Authored by Braulio Bhavamitra
2 parents 3f5e3976 23f5a418

Merge branch 'count-products' into 'master'

New test for statistics block

Add test to not show products when they are disabled on environment.

See merge request !476
plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb 100644 → 100755
... ... @@ -84,6 +84,9 @@ class HomeControllerTest < ActionController::TestCase
84 84 end
85 85  
86 86 should 'not display products class in statistics-block-data block' do
  87 + @block.product_counter = true
  88 + @environment.disable('products_for_enterprises')
  89 + @block.save!
87 90 get :index
88 91  
89 92 assert_no_tag :tag => 'div', :attributes => {:class => 'statistics-block-data'}, :descendant => { :tag => 'li', :attributes => {:class => 'products'} }
... ...