では、キュウリでwatir-webdriverを使用して電子メール仕様を使用する方法の例を書いてください。
私はそれを見つけることができません: https://github.com/bmabey/email-spec
以下: https://github.com/bmabey/email-spec/wiki/Use-Cucumber-to-Test-Email
それは私にはうまくいきません... :(
Then /^I should receive an email with a link to a confirmation page$/ do
unread_emails_for(current_email_address).size.should == 1
open_last_email_for(last_email_address)
current_email.should have_subject(/ALPHAJUMP: Bitte bestätigen Sie Ihre Registrierung./)
current_email.should have_body_text('Herzlich willkommen')
click_email_link_matching /Jetzt freischalten/
page.should have_content("Wir begrüßen Sie auf ALPHAJUMP!")
end
エラーメッセージ: expected: 1 got: 0 (== を使用) (RSpec::Expectations::ExpectationNotMetError)