aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-22 11:15:39 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-22 11:15:39 +0100
commit744548b8943f38e56a8021fa16c3c00ef11c1356 (patch)
treec4c5e3cd043d3e45dc8145eb35cadeaefbbd5225 /spec/controllers/request_controller_spec.rb
parent462b49c56892cc43ce2fbfd283435ec55cbd4f10 (diff)
Re-enable testing of comment links in emails.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index c79cb80f4..92fde2522 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -1614,10 +1614,7 @@ describe RequestController, "comment alerts" do
mail.to_addrs.first.to_s.should == info_requests(:fancy_dog_request).user.name_and_email
mail.body =~ /(http:\/\/.*)/
mail_url = $1
-
- # XXX check mail_url here somehow, can't call comment_url like this:
- # mail_url.should == comment_url(comments(:silly_comment))
-
+ mail_url.should match("/request/why_do_you_have_such_a_fancy_dog#comment-#{new_comment.id}")
# check if we send again, no more go out
deliveries.clear
@@ -1657,9 +1654,7 @@ describe RequestController, "comment alerts" do
mail.to_addrs.first.to_s.should == info_requests(:fancy_dog_request).user.name_and_email
mail.body =~ /(http:\/\/.*)/
mail_url = $1
-
- # XXX check mail_url here somehow, can't call comment_url like this:
- # mail_url.should == comment_url(comments(:silly_comment))
+ mail_url.should match("/request/why_do_you_have_such_a_fancy_dog#comment-#{comments(:silly_comment).id}")
end