Commit 7c7ffb0547c436c4aed9ee7d9c28eb2c46f54f4d
1 parent
2aec379b
Exists in
master
and in
29 other branches
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 | 16 | blog = fast_create(Blog, :name => 'Blog test', :profile_id => profile.id) |
17 | 17 | post = TextileArticle.create!(:name => 'post test', :profile => profile, :parent => blog) |
18 | 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 | 20 | end |
21 | 21 | |
22 | 22 | should 'not display published-at for non-blog posts' do | ... | ... |