diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-01-17 10:49:29 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-01-17 10:49:29 +0000 |
commit | a6b40e039aca35e011e9e106f6a791ffa4b555db (patch) | |
tree | 65680fac1ca5630ac00df6cd5e7cf4a8bfaa8cc6 /spec/models/incoming_message_spec.rb | |
parent | 09a7180b3f5ddbed54da23a6985fff196cc36af2 (diff) |
Tighten up expectation, make expected files consistent.
Just expecting the parsed file to include the expected one would mean
success in the case where nothing has been folded. Tighten up the
expectation, and add quoting placeholders to expected files that didn't
have them.
Diffstat (limited to 'spec/models/incoming_message_spec.rb')
-rw-r--r-- | spec/models/incoming_message_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/incoming_message_spec.rb b/spec/models/incoming_message_spec.rb index c0a7e5340..c27870afc 100644 --- a/spec/models/incoming_message_spec.rb +++ b/spec/models/incoming_message_spec.rb @@ -165,7 +165,7 @@ describe IncomingMessage, " when dealing with incoming mail" do message = File.read(file) parsed = IncomingMessage.remove_quoted_sections(message) expected = File.read("#{file}.expected") - parsed.should include(expected) + parsed.should be_equal_modulo_whitespace_to expected end end @@ -462,7 +462,7 @@ describe IncomingMessage, " when censoring data" do data.should == "His email was x\000x\000x\000@\000x\000x\000x\000.\000x\000x\000x\000, indeed" end - it 'should handle multibyte characters correctly', :focus => true do + it 'should handle multibyte characters correctly' do orig_data = 'á' data = orig_data.dup @regex_censor_rule = CensorRule.new() |