Commit ddcf8bea825911b8b67f6e4002794fa3fbf371a8
1 parent
9f7261cd
Exists in
master
and in
29 other branches
rails3: fix approve_article tests (incomplete)
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
test/unit/approve_article_test.rb
@@ -305,6 +305,7 @@ class ApproveArticleTest < ActiveSupport::TestCase | @@ -305,6 +305,7 @@ class ApproveArticleTest < ActiveSupport::TestCase | ||
305 | should "the tracker action target be defined as the article on articles'creation in profile" do | 305 | should "the tracker action target be defined as the article on articles'creation in profile" do |
306 | ActionTracker::Record.delete_all | 306 | ActionTracker::Record.delete_all |
307 | person = fast_create(Person) | 307 | person = fast_create(Person) |
308 | + person.stubs(:notification_emails).returns(['target@example.org']) | ||
308 | 309 | ||
309 | a = create(ApproveArticle, :article => article, :target => person, :requestor => profile) | 310 | a = create(ApproveArticle, :article => article, :target => person, :requestor => profile) |
310 | a.finish | 311 | a.finish |