method
assert_select_email
v1.2.6 -
Show latest stable
- Class:
ActionController::Assertions::SelectorAssertions
assert_select_email(&block)public
Extracts the body of an email and runs nested assertions on it.
You must enable deliveries for this assertion to work, use:
ActionMailer::Base.perform_deliveries = true
Example
assert_select "h1", "Email alert"
end