Sha256: 87a10cc7f2c3787f47c19a0a2d9063d6f5f0373bb96ef6860bb83f1c17cff7b4
Contents?: true
Size: 882 Bytes
Versions: 1
Compression:
Stored size: 882 Bytes
Contents
require 'test_helper' module PointlessFeedback class FeedbackMailerTest < ActionMailer::TestCase before do PointlessFeedback.to_emails = 'to@example.com' @message = FactoryGirl.create(:message) @mail = FeedbackMailer.feedback(@message) end test "feedback email" do assert_equal "Pointless Feedback", @mail.subject assert_equal ["to@example.com"], @mail.to assert_equal ["feedback@pointlesscorp.com"], @mail.from end test "feedback email body" do assert_match "You've got feedback!", @mail.body.encoded assert_match "Name: #{@message.name}", @mail.body.encoded assert_match "Email Address: #{@message.email_address}", @mail.body.encoded assert_match "Topic: #{@message.topic}", @mail.body.encoded assert_match "Description: #{@message.description}", @mail.body.encoded end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pointless_feedback-1.0.2 | test/functional/pointless_feedback/feedback_mailer_test.rb |