Below is an example of a review_mailer_spec.rb:

describe ReviewMailer do
  it ‘creates and sends an email’ do
     @email=ReviewMailer.create_email(“test@com.au”,”Hello”,”Testing 123″)
     @email.to.should==[“test@com.au”]
     @email.subject.should==”Hello”
     @email.body.encoded.should match “Testing 123”
  end
end