Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12141

Capybara-email save and open specific email in ActionMailer::Base.deliveries

$
0
0

I have an old project I'm updating soon, which currently uses Capybara ~> 3.6 and Capybara-email.

There's two emails that coincidentally fire off to the same email in a particular test, and I would like to look at both, but open_email('asdf@qwer.com') only opens the last email when current_email.save_and_open

Any way to set ActionMailer::Base.deliveries[2] in open_email, or otherwise somehow look at both?


Viewing all articles
Browse latest Browse all 12141

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>