The assert_select_email method used in rspec tests relies on the deliveries of Mail::TestMailer containing the messages that are delivered.  As such, I think this deliver! method should write there as well.