diff options
Diffstat (limited to 'spec/chotto_spec.rb')
-rw-r--r-- | spec/chotto_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/chotto_spec.rb b/spec/chotto_spec.rb index 7593a48..019c0e4 100644 --- a/spec/chotto_spec.rb +++ b/spec/chotto_spec.rb @@ -35,8 +35,7 @@ describe Chotto do end it 'sends the rules to Notmuch - scenario 1' do - expect(message_double).to receive(:tags) - expect(message_double).to receive(:header).with('Subject').and_return('Number Six') + expect(message_double).to receive(:header).with('subject').and_return('Number Six') expect(message_double).to receive(:remove_all_tags) expect(message_double).to receive(:add_tag).with('todo') expect(db_instance_double).to receive(:close) @@ -45,8 +44,7 @@ describe Chotto do end it 'sends the rules to Notmuch - scenario 2' do - expect(message_double).to receive(:tags) - expect(message_double).to receive(:header).with('Subject').and_return('Boomer') + expect(message_double).to receive(:header).with('subject').and_return('Boomer') expect(message_double).to receive(:remove_all_tags) expect(message_double).to receive(:add_tag).with('spam') expect(db_instance_double).to receive(:close) |