diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-03 11:04:13 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-03 11:04:13 +0000 |
commit | debcab8798a7c389bbac9bfefbb133071b5a851e (patch) | |
tree | 9beb7eec228a8633838d31034917c227211ea3de /spec/models | |
parent | 0f98f673ad31f7b8293b2e7dbf33f5b41216fad7 (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.rb | 2 |
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 |