diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-26 17:11:36 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-26 17:11:36 +1100 |
commit | e297eed4f21a57234ea28fe3dc9265ed8793dba1 (patch) | |
tree | 9c7e5a043fafc3ebd79133a20bf01f22fb15c5d5 /actionmailer/test | |
parent | 0b05acd42439b197f71e168354020393cbf42b4f (diff) | |
download | rails-e297eed4f21a57234ea28fe3dc9265ed8793dba1.tar.gz rails-e297eed4f21a57234ea28fe3dc9265ed8793dba1.tar.bz2 rails-e297eed4f21a57234ea28fe3dc9265ed8793dba1.zip |
Fixing up expectations in base_test.rb
Diffstat (limited to 'actionmailer/test')
-rw-r--r-- | actionmailer/test/base_test.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/actionmailer/test/base_test.rb b/actionmailer/test/base_test.rb index 8a54455633..20a35ddc73 100644 --- a/actionmailer/test/base_test.rb +++ b/actionmailer/test/base_test.rb @@ -81,9 +81,9 @@ class BaseTest < ActiveSupport::TestCase # Basic mail usage without block test "mail() should set the headers of the mail message" do email = BaseMailer.welcome.deliver - assert_equal(email.to, ['mikel@test.lindsaar.net']) - assert_equal(email.from, ['jose@test.plataformatec.com']) - assert_equal(email.subject, 'The first email on new API!') + assert_equal(['mikel@test.lindsaar.net'], email.to) + assert_equal(['jose@test.plataformatec.com'], email.from) + assert_equal('The first email on new API!', email.subject) end test "mail() should pull the defaults from the class if nothing is specified" do @@ -110,13 +110,13 @@ class BaseTest < ActiveSupport::TestCase :mime_version => '2.0', :reply_to => 'reply-to@test.lindsaar.net', :date => @time).deliver - assert_equal(email.bcc, ['bcc@test.lindsaar.net']) - assert_equal(email.cc, ['cc@test.lindsaar.net']) - assert_equal(email.content_type, 'multipart/mixed') - assert_equal(email.charset, 'iso-8559-1') - assert_equal(email.mime_version, '2.0') - assert_equal(email.reply_to, ['reply-to@test.lindsaar.net']) - assert_equal(email.date, @time) + assert_equal(['bcc@test.lindsaar.net'], email.bcc) + assert_equal(['cc@test.lindsaar.net'], email.cc) + assert_equal('multipart/mixed', email.content_type) + assert_equal('iso-8559-1', email.charset) + assert_equal('2.0', email.mime_version) + assert_equal(['reply-to@test.lindsaar.net'], email.reply_to) + assert_equal(@time, email.date) end test "mail() renders the template using the method being processed" do |