From 6d3ab5f655c83f78905dccede27e5b1da22cc97c Mon Sep 17 00:00:00 2001 From: mms Date: Tue, 12 Nov 2024 23:36:48 +0100 Subject: test: add specs to Mesage class --- spec/messages_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/messages_spec.rb') diff --git a/spec/messages_spec.rb b/spec/messages_spec.rb index 6a84bc3..ec43379 100644 --- a/spec/messages_spec.rb +++ b/spec/messages_spec.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true require 'rspec' -require_relative '../lib/some/messages' +require_relative '../lib/chotto/messages' -RSpec.describe Some::Messages do - let(:subject) { Some::Messages.new } +RSpec.describe Chotto::Messages do + let(:subject) { Chotto::Messages.new(db: double('Notmuch')) } describe 'direct filters' do it { expect(subject.filter('from:baltar@battlestar.com').query_string).to eq(' (from:baltar@battlestar.com)') } -- cgit v1.2.3