From 2adc3c358184763e34911f55a8773c23100e0d50 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 28 Jan 2009 14:58:59 -0300 Subject: [PATCH] ActionItem918: fixing test that fails on etch --- test/unit/content_viewer_helper_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/content_viewer_helper_test.rb b/test/unit/content_viewer_helper_test.rb index e4b64ec..34135db 100644 --- a/test/unit/content_viewer_helper_test.rb +++ b/test/unit/content_viewer_helper_test.rb @@ -4,6 +4,7 @@ class ContentViewerHelperTest < Test::Unit::TestCase include ActionView::Helpers::TagHelper include ContentViewerHelper + include DatesHelper def setup @profile = create_user('blog_helper_test').person @@ -14,13 +15,13 @@ class ContentViewerHelperTest < Test::Unit::TestCase blog = Blog.create!(:name => 'Blog test', :profile => profile) post = TextileArticle.create!(:name => 'post test', :profile => profile, :parent => blog) result = article_title(post) - assert_match /#{post.created_at}, by #{profile.identifier}/, result + assert_match /#{show_date(post.created_at)}, by #{profile.identifier}/, result end should 'not display created-at for non-blog posts' do article = TextileArticle.create!(:name => 'article for test', :profile => profile) result = article_title(article) - assert_no_match /#{article.created_at}, by #{profile.identifier}/, result + assert_no_match /#{show_date(article.created_at)}, by #{profile.identifier}/, result end should 'create link on title of blog posts' do -- libgit2 0.21.2