Commit eda464a052af2f533a46260927b82690272c13c6
1 parent
dc01e7bc
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
fixing test because EnvironmentStatisticsBlock was removed
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/functional/environment_design_controller_test.rb
... | ... | @@ -341,18 +341,18 @@ class EnvironmentDesignControllerTest < ActionController::TestCase |
341 | 341 | should 'display all available blocks in groups' do |
342 | 342 | login_as(create_admin_user(Environment.default)) |
343 | 343 | get :index |
344 | - assert_select 'div.block-types-group', 3 | |
344 | + assert_select 'div.block-types-group', 2 | |
345 | 345 | |
346 | 346 | assert_select 'div.block-types-group' do |elements| |
347 | - assert_select 'div.block-type', 15 | |
347 | + assert_select 'div.block-type', 14 | |
348 | 348 | end |
349 | 349 | end |
350 | 350 | |
351 | 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 | 353 | login_as(create_admin_user(Environment.default)) |
354 | 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 | 356 | end |
357 | 357 | |
358 | 358 | end | ... | ... |