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/mailers/notify_spec.rb
parent73fd5a897364c6f91f86a0dd6d4b566c2574ca6e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r--spec/mailers/notify_spec.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index b4688cc02c4..3ebc2fc1e36 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -1450,38 +1450,6 @@ RSpec.describe Notify do
subject { described_class.member_invited_email('Group', group_member.id, group_member.invite_token) }
- shared_examples "tracks the 'sent' event for the invitation reminders experiment" do
- before do
- stub_experiment(invitation_reminders: true)
- allow(Gitlab::Experimentation).to receive(:in_experiment_group?).with(:invitation_reminders, subject: group_member.invite_email).and_return(experimental_group)
- end
-
- it "tracks the 'sent' event", :snowplow do
- subject.deliver_now
-
- expect_snowplow_event(
- category: 'Growth::Acquisition::Experiment::InvitationReminders',
- label: Digest::MD5.hexdigest(group_member.to_global_id.to_s),
- property: experimental_group ? 'experimental_group' : 'control_group',
- action: 'sent'
- )
- end
- end
-
- describe 'tracking for the invitation reminders experiment' do
- context 'when invite email is in the experimental group' do
- let(:experimental_group) { true }
-
- it_behaves_like "tracks the 'sent' event for the invitation reminders experiment"
- end
-
- context 'when invite email is in the control group' do
- let(:experimental_group) { false }
-
- it_behaves_like "tracks the 'sent' event for the invitation reminders experiment"
- end
- end
-
it_behaves_like 'an email sent from GitLab'
it_behaves_like 'it should not have Gmail Actions links'
it_behaves_like "a user cannot unsubscribe through footer link"