summaryrefslogtreecommitdiff
path: root/spec/controllers/invites_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/invites_controller_spec.rb')
-rw-r--r--spec/controllers/invites_controller_spec.rb39
1 files changed, 0 insertions, 39 deletions
diff --git a/spec/controllers/invites_controller_spec.rb b/spec/controllers/invites_controller_spec.rb
index 2d13b942c31..e863f5ef2fc 100644
--- a/spec/controllers/invites_controller_spec.rb
+++ b/spec/controllers/invites_controller_spec.rb
@@ -22,43 +22,6 @@ RSpec.describe InvitesController, :snowplow do
end
end
- shared_examples "tracks the 'accepted' event for the invitation reminders experiment" do
- before do
- stub_experiment(invitation_reminders: true)
- allow(Gitlab::Experimentation).to receive(:enabled_for_attribute?).with(:invitation_reminders, member.invite_email).and_return(experimental_group)
- end
-
- context 'when in the control group' do
- let(:experimental_group) { false }
-
- it "tracks the 'accepted' event" do
- request
-
- expect_snowplow_event(
- category: 'Growth::Acquisition::Experiment::InvitationReminders',
- label: md5_member_global_id,
- property: 'control_group',
- action: 'accepted'
- )
- end
- end
-
- context 'when in the experimental group' do
- let(:experimental_group) { true }
-
- it "tracks the 'accepted' event" do
- request
-
- expect_snowplow_event(
- category: 'Growth::Acquisition::Experiment::InvitationReminders',
- label: md5_member_global_id,
- property: 'experimental_group',
- action: 'accepted'
- )
- end
- end
- end
-
describe 'GET #show' do
subject(:request) { get :show, params: params }
@@ -87,7 +50,6 @@ RSpec.describe InvitesController, :snowplow do
expect(flash[:notice]).to be_nil
end
- it_behaves_like "tracks the 'accepted' event for the invitation reminders experiment"
it_behaves_like 'invalid token'
end
@@ -119,7 +81,6 @@ RSpec.describe InvitesController, :snowplow do
subject(:request) { post :accept, params: params }
- it_behaves_like "tracks the 'accepted' event for the invitation reminders experiment"
it_behaves_like 'invalid token'
end