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:
Diffstat (limited to 'spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb')
-rw-r--r--spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb b/spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb
index 269b6222020..c91a8f1950e 100644
--- a/spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb
+++ b/spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb
@@ -30,34 +30,6 @@ RSpec.describe RequireVerificationForNamespaceCreationExperiment, :experiment do
end
end
- describe '#record_conversion' do
- let_it_be(:namespace) { create(:namespace) }
-
- context 'when should_track? is false' do
- before do
- allow(experiment).to receive(:should_track?).and_return(false)
- end
-
- it 'does not record a conversion event' do
- expect(experiment.publish_to_database).to be_nil
- expect(experiment.record_conversion(namespace)).to be_nil
- end
- end
-
- context 'when should_track? is true' do
- before do
- allow(experiment).to receive(:should_track?).and_return(true)
- end
-
- it 'records a conversion event' do
- experiment_subject = experiment.publish_to_database
-
- expect { experiment.record_conversion(namespace) }.to change { experiment_subject.reload.converted_at }.from(nil)
- .and change { experiment_subject.context }.to include('namespace_id' => namespace.id)
- end
- end
- end
-
describe 'exclusions' do
context 'when user is new' do
it 'is not excluded' do