Commit eda464a052af2f533a46260927b82690272c13c6

Authored by Leandro Santos
1 parent dc01e7bc

fixing test because EnvironmentStatisticsBlock was removed

test/functional/environment_design_controller_test.rb
@@ -341,18 +341,18 @@ class EnvironmentDesignControllerTest < ActionController::TestCase @@ -341,18 +341,18 @@ class EnvironmentDesignControllerTest < ActionController::TestCase
341 should 'display all available blocks in groups' do 341 should 'display all available blocks in groups' do
342 login_as(create_admin_user(Environment.default)) 342 login_as(create_admin_user(Environment.default))
343 get :index 343 get :index
344 - assert_select 'div.block-types-group', 3 344 + assert_select 'div.block-types-group', 2
345 345
346 assert_select 'div.block-types-group' do |elements| 346 assert_select 'div.block-types-group' do |elements|
347 - assert_select 'div.block-type', 15 347 + assert_select 'div.block-type', 14
348 end 348 end
349 end 349 end
350 350
351 should 'paginate the block store with 7 elements per line' do 351 should 'paginate the block store with 7 elements per line' do
352 - assert_equal 15, @controller.available_blocks.length 352 + assert_equal 14, @controller.available_blocks.length
353 login_as(create_admin_user(Environment.default)) 353 login_as(create_admin_user(Environment.default))
354 get :index 354 get :index
355 - assert_select 'div.block-types-group', 3, "something wrong happens with the pagination of the block store" 355 + assert_select 'div.block-types-group', 2, "something wrong happens with the pagination of the block store"
356 end 356 end
357 357
358 end 358 end