noosfero | 2 new commits pushed to repository
Bráulio Bhavamitra
gitlab at gitlab.com
Mon Feb 23 11:29:45 BRT 2015
Bráulio Bhavamitra pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/23f5a418672dca0f5b252e0ee112e724d12a1102">23f5a418</a> by Eduardo Passos
new test for statistic block
Add test to not show products when they are disabled in environment.
- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/5c2e6a15bc8e5ab89a8490a35ee34096c569d1bd">5c2e6a15</a> by Bráulio Bhavamitra
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
- - - - -
Changes:
=====================================
plugins/statistics/test/functional/statistics_plugin_home_controller_test.rb
=====================================
--- 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'} }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150223/e9e2cce7/attachment.html>
More information about the Noosfero-dev
mailing list