--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: ""
comment: 
- !ruby/struct:SM::Flow::P 
  body: Asserts that the number of emails sent matches the given number.
- !ruby/struct:SM::Flow::VERB 
  body: "  def test_emails\n    assert_emails 0\n    ContactMailer.deliver_contact\n    assert_emails 1\n    ContactMailer.deliver_contact\n    assert_emails 2\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: If a block is passed, that block should cause the specified number of emails to be sent.
- !ruby/struct:SM::Flow::VERB 
  body: "  def test_emails_again\n    assert_emails 1 do\n      ContactMailer.deliver_contact\n    end\n\n    assert_emails 2 do\n      ContactMailer.deliver_contact\n      ContactMailer.deliver_contact\n    end\n  end\n"
full_name: ActionMailer::TestHelper#assert_emails
is_singleton: false
name: assert_emails
params: (number) {|| ...}
visibility: public
