Commit 684656e27ab0d0bbbb5836d6d4a4228997643f51

Authored by Daniela Feitosa
1 parent ef306ba9

Changed message of approval task when article was removed

(ActionItem2054)
app/models/approve_article.rb
@@ -97,7 +97,7 @@ class ApproveArticle < Task @@ -97,7 +97,7 @@ class ApproveArticle < Task
97 if article 97 if article
98 _('%{requestor} wants to publish the article: %{article}.') % {:requestor => requestor.name, :article => article.name} 98 _('%{requestor} wants to publish the article: %{article}.') % {:requestor => requestor.name, :article => article.name}
99 else 99 else
100 - _('%{requestor} wants to publish an article that was removed.') % {:requestor => requestor.name} 100 + _('%{requestor} wanted to publish an article but it was removed.') % {:requestor => requestor.name}
101 end 101 end
102 end 102 end
103 103
test/unit/approve_article_test.rb
@@ -376,7 +376,7 @@ class ApproveArticleTest < ActiveSupport::TestCase @@ -376,7 +376,7 @@ class ApproveArticleTest < ActiveSupport::TestCase
376 376
377 email = TaskMailer.deliver_task_finished(task) 377 email = TaskMailer.deliver_task_finished(task)
378 378
379 - assert_match(/#{task.requestor.name} wants to publish an article that was removed/, email.subject) 379 + assert_match(/#{task.requestor.name} wanted to publish an article but it was removed/, email.subject)
380 end 380 end
381 381
382 should 'approve an event' do 382 should 'approve an event' do