Commit e5e280f900fb618cc490297f7661e077feaf5cc6
1 parent
e8e43940
Exists in
master
and in
12 other branches
action_tracker: set User.current to avoid random failures
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
test/unit/action_tracker_notification_test.rb
| @@ -89,7 +89,8 @@ class ActionTrackerNotificationTest < ActiveSupport::TestCase | @@ -89,7 +89,8 @@ class ActionTrackerNotificationTest < ActiveSupport::TestCase | ||
| 89 | end | 89 | end |
| 90 | 90 | ||
| 91 | should "have comments through article action_tracker" do | 91 | should "have comments through article action_tracker" do |
| 92 | - person = create_user.person | 92 | + user = User.current = create_user |
| 93 | + person = user.person | ||
| 93 | article = create(TextileArticle, :profile_id => person.id) | 94 | article = create(TextileArticle, :profile_id => person.id) |
| 94 | process_delayed_job_queue | 95 | process_delayed_job_queue |
| 95 | notification = ActionTrackerNotification.last | 96 | notification = ActionTrackerNotification.last |