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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-04 06:09:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-04 06:09:49 +0300
commitedf27428120b9726e34e577e5b1d3371c74baf1d (patch)
tree3e59d3def1ef3eb3ce5832f8daf6bbcd09acd841 /spec/workers
parent73fd5a897364c6f91f86a0dd6d4b566c2574ca6e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/member_invitation_reminder_emails_worker_spec.rb26
1 files changed, 4 insertions, 22 deletions
diff --git a/spec/workers/member_invitation_reminder_emails_worker_spec.rb b/spec/workers/member_invitation_reminder_emails_worker_spec.rb
index bfd08792c7c..bb4ff466584 100644
--- a/spec/workers/member_invitation_reminder_emails_worker_spec.rb
+++ b/spec/workers/member_invitation_reminder_emails_worker_spec.rb
@@ -10,30 +10,12 @@ RSpec.describe MemberInvitationReminderEmailsWorker do
create(:group_member, :invited, created_at: 2.days.ago)
end
- context 'feature flag disabled' do
- before do
- stub_experiment(invitation_reminders: false)
+ it 'executes the invitation reminder email service' do
+ expect_next_instance_of(Members::InvitationReminderEmailService) do |service|
+ expect(service).to receive(:execute)
end
- it 'does not attempt to execute the invitation reminder service' do
- expect(Members::InvitationReminderEmailService).not_to receive(:new)
-
- subject
- end
- end
-
- context 'feature flag enabled' do
- before do
- stub_experiment(invitation_reminders: true)
- end
-
- it 'executes the invitation reminder email service' do
- expect_next_instance_of(Members::InvitationReminderEmailService) do |service|
- expect(service).to receive(:execute)
- end
-
- subject
- end
+ subject
end
end
end