We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
context "Testando ActionMailer" do before do UserNotifier.delivery_method = :test UserNotifier.perform_deliveries = true UserNotifier.deliveries = [] end it "sends a e-mail" do mail = subject.delivery_something UserNotifier.deliveries.size.should == 1 mail.body.should =~ /name/ end end
http://www.rubytutorials.net/2008/02/26/small-rspec-revelations-actionmailer/