Commit 9bca97e75ad5842e837425ec49308ae7037dec1b
1 parent
9eb983d6
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
fix unit tests
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/unit/block_test.rb
| @@ -364,22 +364,22 @@ class BlockTest < ActiveSupport::TestCase | @@ -364,22 +364,22 @@ class BlockTest < ActiveSupport::TestCase | ||
| 364 | 364 | ||
| 365 | should 'return the icon block path' do | 365 | should 'return the icon block path' do |
| 366 | class NewBlock < Block; end | 366 | class NewBlock < Block; end |
| 367 | - assert_equal 'blocks/new_block/icon.png', NewBlock.icon_path | 367 | + assert_equal 'images/blocks/new_block/icon.png', NewBlock.icon_path |
| 368 | end | 368 | end |
| 369 | 369 | ||
| 370 | should 'return the icon block path for blocks inside modules' do | 370 | should 'return the icon block path for blocks inside modules' do |
| 371 | module SomeModule class NewBlock < Block; end; end | 371 | module SomeModule class NewBlock < Block; end; end |
| 372 | - assert_equal 'blocks/new_block/icon.png', SomeModule::NewBlock.icon_path | 372 | + assert_equal 'images/blocks/new_block/icon.png', SomeModule::NewBlock.icon_path |
| 373 | end | 373 | end |
| 374 | 374 | ||
| 375 | should 'return the default icon for blocks without icon' do | 375 | should 'return the default icon for blocks without icon' do |
| 376 | class NewBlock < Block; end | 376 | class NewBlock < Block; end |
| 377 | - assert_equal 'icon_block.png', NewBlock.default_icon_path | 377 | + assert_equal '/images/icon_block.png', NewBlock.default_icon_path |
| 378 | end | 378 | end |
| 379 | 379 | ||
| 380 | should 'return the default preview path for blocks without preview images' do | 380 | should 'return the default preview path for blocks without preview images' do |
| 381 | class NewBlock < Block; end | 381 | class NewBlock < Block; end |
| 382 | - assert_equal 'block_preview.png', NewBlock.default_preview_path | 382 | + assert_equal '/images/block_preview.png', NewBlock.default_preview_path |
| 383 | end | 383 | end |
| 384 | 384 | ||
| 385 | should 'get limit as a number when limit is string' do | 385 | should 'get limit as a number when limit is string' do |