spec/lib/errors_spec.rb in buff-ignore-1.1.0 vs spec/lib/errors_spec.rb in buff-ignore-1.1.1

- old
+ new

@@ -14,9 +14,13 @@ expect { described_class.new(path) }.to_not raise_error end - it 'has the correct message' do - expect(subject.message).to eq("No ignore file found at '#{path}'!") + context 'when path is nil' do + let(:path) { nil } + + it 'has the correct message' do + expect(subject.message).to eq("No ignore file found at ''!") + end end end