Ожидайте, что ActionMailer Base Nullmail

let(:mail){ SomeMailer.your_mail }

it "is a NullMail" do
  expect(mail.message).to be_kind_of(ActionMailer::Base::NullMail)
end
foloinfo