Commit 7c7ffb0547c436c4aed9ee7d9c28eb2c46f54f4d

Authored by Antonio Terceiro
1 parent 2aec379b

Make test less strict

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/content_viewer_helper_test.rb
@@ -16,7 +16,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase @@ -16,7 +16,7 @@ class ContentViewerHelperTest < ActiveSupport::TestCase
16 blog = fast_create(Blog, :name => 'Blog test', :profile_id => profile.id) 16 blog = fast_create(Blog, :name => 'Blog test', :profile_id => profile.id)
17 post = TextileArticle.create!(:name => 'post test', :profile => profile, :parent => blog) 17 post = TextileArticle.create!(:name => 'post test', :profile => profile, :parent => blog)
18 result = article_title(post) 18 result = article_title(post)
19 - assert_match /<span class="date">#{show_date(post.published_at)}<\/span><span class="author">, by .*#{profile.identifier}/, result 19 + assert_tag_in_string result, :tag => 'span', :content => show_date(post.published_at)
20 end 20 end
21 21
22 should 'not display published-at for non-blog posts' do 22 should 'not display published-at for non-blog posts' do