Commit acbf97a03689e19770bb801d208c7fbbb2e0224b
1 parent
aaebddf2
Exists in
master
and in
29 other branches
ActionItem21: providing description for article
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@964 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
app/models/article.rb
test/unit/article_test.rb
@@ -70,4 +70,12 @@ class ArticleTest < Test::Unit::TestCase | @@ -70,4 +70,12 @@ class ArticleTest < Test::Unit::TestCase | ||
70 | assert_equal 'text-html', Article.new.icon_name | 70 | assert_equal 'text-html', Article.new.icon_name |
71 | end | 71 | end |
72 | 72 | ||
73 | + should 'provide a (translatable) description' do | ||
74 | + result = 'the description' | ||
75 | + | ||
76 | + a = Article.new | ||
77 | + a.expects(:_).returns(result) | ||
78 | + assert_same result, a.mime_type_description | ||
79 | + end | ||
80 | + | ||
73 | end | 81 | end |