aboutsummaryrefslogtreecommitdiffstats
path: root/spec/mailers/contact_mailer_spec.rb
blob: a0431afd2c01ec8fa4a54eeaad80e3eee62c2357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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