Commit 1249505fda74b12a1a9c75d730330601129e768e

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent 880278a9

#embed block: fix unit tests

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/unit/block_test.rb
... ... @@ -224,12 +224,12 @@ class BlockTest < ActiveSupport::TestCase
224 224 end
225 225  
226 226 should 'be embedable by default' do
227   - assert Block.new.embedable?
  227 + assert !Block.new.embedable?
228 228 end
229 229  
230   - should 'generate embed url' do
  230 + should 'generate embed code' do
231 231 b = Block.new
232   - assert_equal "<iframe src='http://myblogtest.com' frameborder='0'></iframe>", b.embed_code('http://myblogtest.com')
  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')
233 233 end
234 234  
235 235 end
... ...