Sha256: 1aeb135bec204439b6c2547c6425d1af34f2f45a534f7595da9fa46f2df65c83

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

require 'velcro/file_helpers'

describe Velcro::FileHelpers do
  subject { Class.new.extend(described_class) }

  describe '#location' do
    let(:velcro_brewfile) { stub }

    it 'returns the brewfile location specified in the environment variable' do
      ENV.stub(:[]).with('VELCRO_BREWFILE') { velcro_brewfile }
      subject.location.should == velcro_brewfile
    end

    it 'recursively searches for the Brewfile if not specified' do
      subject.stub(:recursive_search) { nil }
      subject.should_receive(:recursive_search)

      subject.location
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
velcro-0.1.0 spec/velcro/file_helpers_spec.rb