Commit a5e19fe6fed3b9b5df89314d1f5e2796f59a3605

Authored by Daniela Feitosa
1 parent 7fcb888d

Tested BlogArchivesBlock when there is no user

(ActionItem1549)
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
test/unit/blog_archives_block_test.rb
@@ -172,6 +172,7 @@ class BlogArchivesBlockTest < ActiveSupport::TestCase @@ -172,6 +172,7 @@ class BlogArchivesBlockTest < ActiveSupport::TestCase
172 private_post = fast_create(TextileArticle, :profile_id => profile.id, :parent_id => blog.id, :published => false, :published_at => Time.mktime(2012, 'jan')) 172 private_post = fast_create(TextileArticle, :profile_id => profile.id, :parent_id => blog.id, :published => false, :published_at => Time.mktime(2012, 'jan'))
173 173
174 assert_match /January \(1\)/, block.content({:person => person}) 174 assert_match /January \(1\)/, block.content({:person => person})
  175 + assert_match /January \(1\)/, block.content()
175 assert_match /January \(2\)/, block.content({:person => profile}) 176 assert_match /January \(2\)/, block.content({:person => profile})
176 end 177 end
177 end 178 end