Article content", instance_eval(&block.content)
end
should "display title if defined" do
@@ -99,7 +99,7 @@ class ArticleBlockTest < Test::Unit::TestCase
block.expects(:title).returns('Article title')
block.stubs(:article).returns(article)
- assert_equal "
Article content", instance_eval(&block.content)
end
should 'display image if article is an image' do
@@ -142,17 +142,6 @@ class ArticleBlockTest < Test::Unit::TestCase
end
protected
+ include NoosferoTestHelper
- def content_tag(tag, text, options = {})
- "<#{tag}>#{text}#{tag}>"
- end
- def image_tag(arg)
- arg
- end
- def link_to(text, url, options = {})
- "#{text}"
- end
- def params
- {}
- end
end
--
libgit2 0.21.2