summaryrefslogtreecommitdiff
path: root/spec/helpers/recaptcha_experiment_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/recaptcha_experiment_helper_spec.rb')
-rw-r--r--spec/helpers/recaptcha_experiment_helper_spec.rb29
1 files changed, 0 insertions, 29 deletions
diff --git a/spec/helpers/recaptcha_experiment_helper_spec.rb b/spec/helpers/recaptcha_experiment_helper_spec.rb
deleted file mode 100644
index e677164c950..00000000000
--- a/spec/helpers/recaptcha_experiment_helper_spec.rb
+++ /dev/null
@@ -1,29 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe RecaptchaExperimentHelper, type: :helper do
- let(:session) { {} }
-
- before do
- allow(helper).to receive(:session) { session }
- end
-
- describe '.show_recaptcha_sign_up?' do
- context 'when reCAPTCHA is disabled' do
- it 'returns false' do
- stub_application_setting(recaptcha_enabled: false)
-
- expect(helper.show_recaptcha_sign_up?).to be(false)
- end
- end
-
- context 'when reCAPTCHA is enabled' do
- it 'returns true' do
- stub_application_setting(recaptcha_enabled: true)
-
- expect(helper.show_recaptcha_sign_up?).to be(true)
- end
- end
- end
-end