diff --git a/spec/mailers/notifier_spec.rb b/spec/mailers/notifier_spec.rb
index 88e2edb6cdf2b278676ea897707da9ac05976743..6f34431fbb9129f8e8cf9b28c1fdebd62a777bff 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