aboutsummaryrefslogtreecommitdiff
path: root/spec/chotto_spec.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-27 20:50:16 +0100
committermms <git@sapka.me>2024-11-27 20:50:16 +0100
commit1354fcfd222a922762999cd6a97dfe5845d4f835 (patch)
tree44522c5d6eddcd58e98f8507c274a8c1ca351112 /spec/chotto_spec.rb
parent4c911a441e9533b5bb323b26be748abfd4c5d316 (diff)
Diffstat (limited to 'spec/chotto_spec.rb')
-rw-r--r--spec/chotto_spec.rb6
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)