aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mailers/contact_mailer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mailers/contact_mailer_spec.rb')
-rw-r--r--spec/mailers/contact_mailer_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/mailers/contact_mailer_spec.rb b/spec/mailers/contact_mailer_spec.rb
new file mode 100644
index 000000000..a0431afd2
--- /dev/null
+++ b/spec/mailers/contact_mailer_spec.rb
@@ -0,0 +1,18 @@
+# -*- encoding : utf-8 -*-
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+
+describe ContactMailer do
+
+ describe :to_admin_message do
+
+ it 'correctly quotes the name in a "from" address' do
+ ContactMailer.to_admin_message("A,B,C.",
+ "test@example.com",
+ "test",
+ "test", nil, nil, nil)['from'].to_s.should == '"A,B,C." <test@example.com>'
+
+
+ end
+
+ end
+end