diff options
author | Stan Hu <stanhu@gmail.com> | 2016-09-20 19:40:37 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-09-20 19:40:37 -0700 |
commit | ef8badb6a7db5719f78eaccae5826b3543dc0c7b (patch) | |
tree | 0f411e745c64fe5b80244e954e6787128eae3d5a | |
parent | 0a2649ce694a0ba70fa6c4caa84ea21dd53446c8 (diff) | |
download | gitlab-ce-21170-cycle-analytics.tar.gz |
Reload issues in spec to ensure label<->issue mapping properly loaded21170-cycle-analytics
-rw-r--r-- | spec/services/notification_service_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index f81a58899fd..0d152534c38 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -379,6 +379,7 @@ describe NotificationService, services: true do it "emails subscribers of the issue's labels" do subscriber = create(:user) label = create(:label, issues: [issue]) + issue.reload label.toggle_subscription(subscriber) notification.new_issue(issue, @u_disabled) @@ -399,6 +400,7 @@ describe NotificationService, services: true do project.team << [guest, :guest] label = create(:label, issues: [confidential_issue]) + confidential_issue.reload label.toggle_subscription(non_member) label.toggle_subscription(author) label.toggle_subscription(assignee) |