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,7 +18,7 @@ class LocationBlockTest < ActiveSupport::TestCase | ||
18 | end | 18 | end |
19 | 19 | ||
20 | should 'display no localization map without lat' do | 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 | end | 22 | end |
23 | 23 | ||
24 | should 'be editable' do | 24 | should 'be editable' do |
@@ -31,7 +31,7 @@ class LocationBlockTest < ActiveSupport::TestCase | @@ -31,7 +31,7 @@ class LocationBlockTest < ActiveSupport::TestCase | ||
31 | 31 | ||
32 | should 'use google maps api v3 with ssl' do | 32 | should 'use google maps api v3 with ssl' do |
33 | @block.owner.lat = '-12.34'; @block.owner.save! | 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 | assert_match 'https://maps.google.com/maps/api/staticmap', content | 36 | assert_match 'https://maps.google.com/maps/api/staticmap', content |
37 | assert_no_match /key=/, content | 37 | assert_no_match /key=/, content |