From bf1d4b12bb09e7cde737b237774279b751f23c52 Mon Sep 17 00:00:00 2001 From: Aurelio A. Heckert Date: Wed, 26 Nov 2008 10:42:16 -0300 Subject: [PATCH] ActionItem860: Test for the Localization Box --- test/unit/localization_block_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/localization_block_test.rb b/test/unit/localization_block_test.rb index 771c3c2..6959bec 100644 --- a/test/unit/localization_block_test.rb +++ b/test/unit/localization_block_test.rb @@ -15,18 +15,18 @@ class LocalizationBlockTest < Test::Unit::TestCase end should 'display no localization map without lat' do - assert_tag_in_string block.content, :tag => 'i' + assert_tag_in_string block.content.call, :tag => 'i' end should 'display localization map' do profile.lat = 0 profile.lng = 0 profile.save! - assert_tag_in_string block.content, :tag => 'img' + assert_tag_in_string block.content.call, :tag => 'img' end - should 'not be editable' do - assert !LocalizationBlock.new.editable? + should 'be editable' do + assert LocalizationBlock.new.editable? end end -- libgit2 0.21.2