Sha256: 2ac369cadaf657c1cd18fc48e83afd29a632ebcf9c091b88114bf119d66fa718
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
require 'spec_helper' describe Buff::Ignore::BuffIgnoreError do it 'inherits from StandardError' do expect(subject).to be_a(StandardError) end end describe Buff::Ignore::IgnoreFileNotFound do let(:path) { '/path/to/file' } subject { described_class.new(path) } it 'accepts a filepath as the parameter' do expect { described_class.new(path) }.to_not raise_error end 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
buff-ignore-1.2.0 | spec/lib/errors_spec.rb |
buff-ignore-1.1.1 | spec/lib/errors_spec.rb |