From eda464a052af2f533a46260927b82690272c13c6 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 1 Sep 2014 12:17:04 -0300 Subject: [PATCH] fixing test because EnvironmentStatisticsBlock was removed --- test/functional/environment_design_controller_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/environment_design_controller_test.rb b/test/functional/environment_design_controller_test.rb index 234a17b..fc43c78 100644 --- a/test/functional/environment_design_controller_test.rb +++ b/test/functional/environment_design_controller_test.rb @@ -341,18 +341,18 @@ class EnvironmentDesignControllerTest < ActionController::TestCase should 'display all available blocks in groups' do login_as(create_admin_user(Environment.default)) get :index - assert_select 'div.block-types-group', 3 + assert_select 'div.block-types-group', 2 assert_select 'div.block-types-group' do |elements| - assert_select 'div.block-type', 15 + assert_select 'div.block-type', 14 end end should 'paginate the block store with 7 elements per line' do - assert_equal 15, @controller.available_blocks.length + assert_equal 14, @controller.available_blocks.length login_as(create_admin_user(Environment.default)) get :index - assert_select 'div.block-types-group', 3, "something wrong happens with the pagination of the block store" + assert_select 'div.block-types-group', 2, "something wrong happens with the pagination of the block store" end end -- libgit2 0.21.2