Moved SampleMailer to a separate file.
Fixed failing test for Rails 4.0.