Commit 525cc340e5c71776106976d9c235233bef3a9c7c

Authored by Braulio Bhavamitra
1 parent 3ce06577

rails4: fix randomly failing person_notifier test

Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
test/unit/person_notifier_test.rb
... ... @@ -48,8 +48,7 @@ class PersonNotifierTest < ActiveSupport::TestCase
48 48  
49 49 should 'display author name in delivered mail' do
50 50 @community.add_member(@member)
51   - ActionMailer::Base.deliveries.clear
52   -
  51 + User.current = @admin.user
53 52 Comment.create!(:author => @admin, :title => 'test comment', :body => 'body!', :source => @article)
54 53 process_delayed_job_queue
55 54 notify
... ...