Commit db2e9cd339bfcdbd4fe2326317e615fca4f22cd8
1 parent
20a82cdb
Exists in
web_steps_improvements
and in
9 other branches
Fix LocationBlock unit tests
After removing the content method it is now necessary to use BoxesHelper#render_block_content.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/location_block_test.rb
... | ... | @@ -18,7 +18,7 @@ class LocationBlockTest < ActiveSupport::TestCase |
18 | 18 | end |
19 | 19 | |
20 | 20 | should 'display no localization map without lat' do |
21 | - assert_tag_in_string extract_block_content(block.content), :tag => 'i' | |
21 | + assert_tag_in_string extract_block_content(render_block_content(block)), :tag => 'i' | |
22 | 22 | end |
23 | 23 | |
24 | 24 | should 'be editable' do |
... | ... | @@ -31,7 +31,7 @@ class LocationBlockTest < ActiveSupport::TestCase |
31 | 31 | |
32 | 32 | should 'use google maps api v3 with ssl' do |
33 | 33 | @block.owner.lat = '-12.34'; @block.owner.save! |
34 | - content = extract_block_content(@block.content) | |
34 | + content = extract_block_content(render_block_content(@block)) | |
35 | 35 | |
36 | 36 | assert_match 'https://maps.google.com/maps/api/staticmap', content |
37 | 37 | assert_no_match /key=/, content | ... | ... |