Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Text based emails need not be escaped
- Loading branch information
Showing with 15 additions and 1 deletion.
|@@ -1 +1 @@|
|<%= @body %>|
|<%= @body.html_safe %>|
|@@ -0,0 +1,14 @@|
|class BroadcastMailerTest < ActionMailer::TestCase|
|test "emails should not be escaped" do|
|BroadcastMailer.deliver_broadcast(:body => "It's working",|
|:subject => "TEST",|
|:to => "firstname.lastname@example.org",|
|:commit => "Test")|
|message = ActionMailer::Base.deliveries.first|
|assert_equal "It's working\n", message.body.to_s|