Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-09-21 05:40:37 +0300
committerStan Hu <stanhu@gmail.com>2016-09-21 05:40:37 +0300
commitef8badb6a7db5719f78eaccae5826b3543dc0c7b (patch)
tree0f411e745c64fe5b80244e954e6787128eae3d5a /spec
parent0a2649ce694a0ba70fa6c4caa84ea21dd53446c8 (diff)
Reload issues in spec to ensure label<->issue mapping properly loaded
Diffstat (limited to 'spec')
-rw-r--r--spec/services/notification_service_spec.rb2
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)