about summary refs log tree commit diff
path: root/spec/controllers/auth/registrations_controller_spec.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-10 10:25:52 +0100
committerGitHub <noreply@github.com>2020-12-10 10:25:52 +0100
commitcbe9b0640ba4d466c8b24fb233dff60e9f8d00f0 (patch)
tree4e814a622966f1b71f18c1ff41116c75f0728afc /spec/controllers/auth/registrations_controller_spec.rb
parentb27d11dd3320cb005561f0bb1b81baecea8a7c43 (diff)
parent9a5825f864b9e9c545e995249518bb50a74f4359 (diff)
Merge pull request #1473 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/controllers/auth/registrations_controller_spec.rb')
-rw-r--r--spec/controllers/auth/registrations_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/auth/registrations_controller_spec.rb b/spec/controllers/auth/registrations_controller_spec.rb
index bef822763..c701a3b8b 100644
--- a/spec/controllers/auth/registrations_controller_spec.rb
+++ b/spec/controllers/auth/registrations_controller_spec.rb
@@ -82,6 +82,10 @@ RSpec.describe Auth::RegistrationsController, type: :controller do
   describe 'POST #create' do
     let(:accept_language) { Rails.application.config.i18n.available_locales.sample.to_s }
 
+    before do
+      session[:registration_form_time] = 5.seconds.ago
+    end
+
     around do |example|
       current_locale = I18n.locale
       example.run