aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-03 11:04:13 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-03 11:04:13 +0000
commitdebcab8798a7c389bbac9bfefbb133071b5a851e (patch)
tree9beb7eec228a8633838d31034917c227211ea3de /spec/models
parent0f98f673ad31f7b8293b2e7dbf33f5b41216fad7 (diff)
Simpler check works on new Rails, when the other doesn't
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/outgoing_message_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/outgoing_message_spec.rb b/spec/models/outgoing_message_spec.rb
index 969f77296..fedde6649 100644
--- a/spec/models/outgoing_message_spec.rb
+++ b/spec/models/outgoing_message_spec.rb
@@ -21,7 +21,7 @@ describe OutgoingMessage, " when making an outgoing message" do
end
it "should link to help page where email address was" do
- @outgoing_message.get_body_for_html_display.should have_tag('a[href="/help/about#mobiles"]', :text => 'email address')
+ @outgoing_message.get_body_for_html_display.should include('<a href="/help/about#mobiles">')
end
it "should include email addresses in outgoing messages" do