diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-07-15 19:36:19 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-07-15 19:36:19 +0530 |
commit | a80e1e437e74409d8b47b0c3b0cc0bc9ba78c190 (patch) | |
tree | abcfc7fcc30c7196cb2b71c7217f91d5a344197b /guides/source/action_mailer_basics.textile | |
parent | aa6f5120a71dd04f54f248b6c60890bca6d82adc (diff) | |
parent | 92dcdc590ebb8407e7f53c26d501d169799d0eff (diff) | |
download | rails-a80e1e437e74409d8b47b0c3b0cc0bc9ba78c190.tar.gz rails-a80e1e437e74409d8b47b0c3b0cc0bc9ba78c190.tar.bz2 rails-a80e1e437e74409d8b47b0c3b0cc0bc9ba78c190.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/action_mailer_basics.textile')
-rw-r--r-- | guides/source/action_mailer_basics.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/action_mailer_basics.textile b/guides/source/action_mailer_basics.textile index 7c61cc4a8d..54e55d7260 100644 --- a/guides/source/action_mailer_basics.textile +++ b/guides/source/action_mailer_basics.textile @@ -508,8 +508,8 @@ class UserMailerTest < ActionMailer::TestCase # Test the body of the sent email contains what we expect it to assert_equal [user.email], email.to assert_equal "Welcome to My Awesome Site", email.subject - assert_match(/<h1>Welcome to example.com, #{user.name}<\/h1>/, email.encoded) - assert_match(/Welcome to example.com, #{user.name}/, email.encoded) + assert_match "<h1>Welcome to example.com, #{user.name}</h1>", email.body.to_s + assert_match "you have joined to example.com community", email.body.to_s end end </ruby> |