Sha256: 960438d27c352f24cc95e516ead1375c2be6d3dde1d7b59ccc9550bb8e3ede05

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 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

  it 'has the correct message' do
    expect(subject.message).to eq("No ignore file found at '#{path}'!")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
buff-ignore-1.1.0 spec/lib/errors_spec.rb
buff-ignore-1.0.4 spec/lib/errors_spec.rb
buff-ignore-1.0.3 spec/lib/errors_spec.rb
buff-ignore-1.0.2 spec/lib/errors_spec.rb
buff-ignore-1.0.1 spec/lib/errors_spec.rb
buff-ignore-1.0.0 spec/lib/errors_spec.rb