diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-08-11 17:54:29 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-08-12 16:11:19 +0100 |
commit | 7705f6754184d471fb5da38c5d8671a7737bcdd6 (patch) | |
tree | 5e8113734791698e948bd6b0bd8e70b76a60f9bb /spec/models/incoming_message_spec.rb | |
parent | 9bd22ea1b3ad1b94328d3d32b6a8cfb9d6ee7a09 (diff) |
Remove more whatdotheyknow references. Closes #113 (I think).
Diffstat (limited to 'spec/models/incoming_message_spec.rb')
-rw-r--r-- | spec/models/incoming_message_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/incoming_message_spec.rb b/spec/models/incoming_message_spec.rb index 5fcc534ca..ad7aa8d43 100644 --- a/spec/models/incoming_message_spec.rb +++ b/spec/models/incoming_message_spec.rb @@ -201,6 +201,13 @@ describe IncomingMessage, " when censoring data" do data.should == "There was a mouse called Jarlsberg, he wished that he was yellow." end + it "should apply hard-coded privacy rules to HTML files" do + domain = MySociety::Config.get('DOMAIN') + data = "http://#{domain}/c/cheese" + @im.html_mask_stuff!(data) + data.should == "[WDTK login link]" + end + it "should apply censor rules to From: addresses" do mock_mail = mock('Email object') mock_mail.stub!(:from_name_if_present).and_return("Stilton Mouse") |