Class: Capybara::Node::Email
- Inherits:
-
Document
- Object
- Document
- Capybara::Node::Email
- Defined in:
- lib/capybara/node/email.rb
Instance Method Summary collapse
-
#body ⇒ Mail::Message#body
Delegate to the email body.
-
#from ⇒ Mail::Message#from
Delegate to the email from.
-
#save_and_open ⇒ Object
Will open the email body in your browser.
-
#subject ⇒ Mail::Message#subject
Delegate to the email subject.
-
#to ⇒ Mail::Message#to
Delegate to the email to.
Instance Method Details
#body ⇒ Mail::Message#body
Delegate to the email body
6 7 8 |
# File 'lib/capybara/node/email.rb', line 6 def body base.raw end |
#from ⇒ Mail::Message#from
Delegate to the email from
27 28 29 |
# File 'lib/capybara/node/email.rb', line 27 def from base.from end |
#save_and_open ⇒ Object
Will open the email body in your browser
32 33 34 35 |
# File 'lib/capybara/node/email.rb', line 32 def save_and_open require 'capybara/util/save_and_open_page' ::Capybara.save_and_open_page(body) end |
#subject ⇒ Mail::Message#subject
Delegate to the email subject
13 14 15 |
# File 'lib/capybara/node/email.rb', line 13 def subject base.subject end |
#to ⇒ Mail::Message#to
Delegate to the email to
20 21 22 |
# File 'lib/capybara/node/email.rb', line 20 def to base.to end |