ruby on rails - how to use capybara-webkit to get a message send to external network -


assume user updating password, , click submit, system send email include confirmation link mailbox. question is: how can email , click confirmation link when use rspec+capybara-webkit test system,

hope want test email of actionmailer opening it.

please use capybara-email gem

https://github.com/dockyard/capybara-email

you can below stuff

scenario: email sent winning user   given "me@example.com" playing game   when user picks winning piece   "me@example.com" receives email "you've won!" subject  /^"([^"]*)" receives email "([^"]*)" subject$/ |email_address, subject|   open_email(email_address)   expect(current_email.subject).to eq subject end 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -