Commit bf1d4b12bb09e7cde737b237774279b751f23c52

Authored by Aurelio A. Heckert
1 parent 89d35a45

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,18 +15,18 @@ class LocalizationBlockTest < Test::Unit::TestCase
15 end 15 end
16 16
17 should 'display no localization map without lat' do 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 end 19 end
20 20
21 should 'display localization map' do 21 should 'display localization map' do
22 profile.lat = 0 22 profile.lat = 0
23 profile.lng = 0 23 profile.lng = 0
24 profile.save! 24 profile.save!
25 - assert_tag_in_string block.content, :tag => 'img' 25 + assert_tag_in_string block.content.call, :tag => 'img'
26 end 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 end 30 end
31 31
32 end 32 end