Workaround occasional mailer test failure

This commit is contained in:
wvengen 2015-01-14 20:57:43 +01:00
parent 2687da357a
commit dbdc7ae4aa
2 changed files with 3 additions and 1 deletions

View file

@ -12,7 +12,7 @@ describe LoginController, :type => :feature do
it 'sends a reset email' do
post reset_password_path, user: {email: user.email}
email = ActionMailer::Base.deliveries.first
expect((email.to rescue [])).to eq [user.email]
expect(email.to).to eq [user.email]
end
end