Commit ea404739d9535fdf7b84999c0ab8b096c26fd3ac

Authored by Leandro Santos
1 parent cf841a42

Fix TextArticle unit test

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/unit/text_article_test.rb
... ... @@ -33,7 +33,8 @@ class TextArticleTest < ActiveSupport::TestCase
33 33  
34 34 should 'return blog icon name if the article is a blog post' do
35 35 blog = fast_create(Blog)
36   - article = TextArticle.new(:parent => blog)
  36 + article = TextArticle.new
  37 + article.parent = blog
37 38 assert_equal Blog.icon_name, TextArticle.icon_name(article)
38 39 end
39 40  
... ...