diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-31 12:52:34 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-31 12:52:34 +1100 |
commit | 5acd5cced50f72d0e88a4524f5aef23525511554 (patch) | |
tree | 10ce6f37bbcd34b7502af6542fa7bb9788216746 /spec/controllers/track_controller_spec.rb | |
parent | 5ff4b4610a810ff29750cd135574700c49929892 (diff) |
Cast mail.body to string before matching with a regex
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index 009ef2f4a..63192c99e 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -80,7 +80,7 @@ describe TrackController, "when sending alerts for a track" do mail = deliveries[0] mail.body.should =~ /Alter your subscription/ mail.to_addrs.first.to_s.should include(users(:silly_name_user).email) - mail.body =~ /(http:\/\/.*\/c\/(.*))/ + mail.body.to_s =~ /(http:\/\/.*\/c\/(.*))/ mail_url = $1 mail_token = $2 |