Commit efd958ecac183ce2747615fd870a453ab285ca9d
1 parent
1763704a
Exists in
master
and in
29 other branches
Fix unit tests
(ActionItem3031)
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
test/unit/block_test.rb
@@ -223,13 +223,14 @@ class BlockTest < ActiveSupport::TestCase | @@ -223,13 +223,14 @@ class BlockTest < ActiveSupport::TestCase | ||
223 | assert !block.visible?(3) | 223 | assert !block.visible?(3) |
224 | end | 224 | end |
225 | 225 | ||
226 | - should 'be embedable by default' do | 226 | + should 'not be embedable by default' do |
227 | assert !Block.new.embedable? | 227 | assert !Block.new.embedable? |
228 | end | 228 | end |
229 | 229 | ||
230 | should 'generate embed code' do | 230 | should 'generate embed code' do |
231 | b = Block.new | 231 | b = Block.new |
232 | - assert_equal "<iframe src='http://myblogtest.com/embed/block/1' frameborder='0' width='1024' height='768' class='embed block block'></iframe>", b.embed_code('http://myblogtest.com/embed/block/1') | 232 | + b.stubs(:url_for).returns('http://myblogtest.com/embed/block/1') |
233 | + assert_equal "<iframe class=\"embed block block\" frameborder=\"0\" height=\"768\" src=\"http://myblogtest.com/embed/block/1\" width=\"1024\"></iframe>", b.embed_code.call | ||
233 | end | 234 | end |
234 | 235 | ||
235 | should 'default value for display_user is all' do | 236 | should 'default value for display_user is all' do |