From 02ca5793bcd240c19277bad88180cd2366d3bc27 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi Date: Wed, 5 Jan 2011 16:03:40 -0800 Subject: [PATCH] checking the string --- spec/mailers/notifier_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/mailers/notifier_spec.rb b/spec/mailers/notifier_spec.rb index 88e2edb6c..6f34431fb 100644 --- a/spec/mailers/notifier_spec.rb +++ b/spec/mailers/notifier_spec.rb @@ -100,7 +100,7 @@ describe Notifier do end it 'has the post link in the body' do - comment_mail.body.encoded.should match "/#{object_path(@sm)}/" + comment_mail.body.encoded.include?("#{comment.post.id.to_s}").should be true end end end