From 23f5a418672dca0f5b252e0ee112e724d12a1102 Mon Sep 17 00:00:00 2001 From: Eduardo Passos Date: Mon, 23 Feb 2015 10:56:19 -0300 Subject: [PATCH] new test for statistic block --- plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) mode change 100644 => 100755 plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb diff --git a/plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb b/plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb old mode 100644 new mode 100755 index cbb809c..2a763e6 --- a/plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb +++ b/plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb @@ -84,6 +84,9 @@ class HomeControllerTest < ActionController::TestCase end should 'not display products class in statistics-block-data block' do + @block.product_counter = true + @environment.disable('products_for_enterprises') + @block.save! get :index assert_no_tag :tag => 'div', :attributes => {:class => 'statistics-block-data'}, :descendant => { :tag => 'li', :attributes => {:class => 'products'} } -- libgit2 0.21.2