Commit bf1d4b12bb09e7cde737b237774279b751f23c52
1 parent
89d35a45
Exists in
master
and in
28 other branches
ActionItem860: Test for the Localization Box
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
test/unit/localization_block_test.rb
| ... | ... | @@ -15,18 +15,18 @@ class LocalizationBlockTest < Test::Unit::TestCase |
| 15 | 15 | end |
| 16 | 16 | |
| 17 | 17 | should 'display no localization map without lat' do |
| 18 | - assert_tag_in_string block.content, :tag => 'i' | |
| 18 | + assert_tag_in_string block.content.call, :tag => 'i' | |
| 19 | 19 | end |
| 20 | 20 | |
| 21 | 21 | should 'display localization map' do |
| 22 | 22 | profile.lat = 0 |
| 23 | 23 | profile.lng = 0 |
| 24 | 24 | profile.save! |
| 25 | - assert_tag_in_string block.content, :tag => 'img' | |
| 25 | + assert_tag_in_string block.content.call, :tag => 'img' | |
| 26 | 26 | end |
| 27 | 27 | |
| 28 | - should 'not be editable' do | |
| 29 | - assert !LocalizationBlock.new.editable? | |
| 28 | + should 'be editable' do | |
| 29 | + assert LocalizationBlock.new.editable? | |
| 30 | 30 | end |
| 31 | 31 | |
| 32 | 32 | end | ... | ... |