diff options
Diffstat (limited to 'spec/controllers/profiles')
-rw-r--r-- | spec/controllers/profiles/emails_controller_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/controllers/profiles/emails_controller_spec.rb b/spec/controllers/profiles/emails_controller_spec.rb index e41ae406d13..b63db831462 100644 --- a/spec/controllers/profiles/emails_controller_spec.rb +++ b/spec/controllers/profiles/emails_controller_spec.rb @@ -62,7 +62,11 @@ RSpec.describe Profiles::EmailsController do end describe '#resend_confirmation_instructions' do - let_it_be(:email) { create(:email, user: user) } + let_it_be(:email) do + travel_to(5.minutes.ago) do + create(:email, user: user) + end + end let(:params) { { id: email.id } } |