Upgrade Rails to version 5.2.1 and adopt code & specs where necessary
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
This commit is contained in:
@ -37,6 +37,11 @@ describe UserMailer do
|
||||
describe '#reset_password_email' do
|
||||
let(:mail) { described_class.reset_password_email(user) }
|
||||
|
||||
before(:each) do
|
||||
user.send(:setup_activation)
|
||||
user.save(validate: false)
|
||||
end
|
||||
|
||||
it 'sets the correct sender' do
|
||||
expect(mail.from).to include(CodeOcean::Application.config.action_mailer[:default_options][:from])
|
||||
end
|
||||
|
Reference in New Issue
Block a user