rspec test check if mail was sent Open options Share it do User.last.whatever_call expect(ActionMailer::Base.deliveries).not_to be_empty end