Sha256: 86070418e22f2012ac56bd2936a856c9dddb2813ed4331efb25e755da8765e98

Contents?: true

Size: 839 Bytes

Versions: 4

Compression:

Stored size: 839 Bytes

Contents

require 'spec_helper'

describe Berkshelf::Installer do
  let(:berksfile) { double('berksfile') }
  subject { described_class.new(berksfile) }

  describe "#build_universe" do
    let(:source_one) { double('one') }
    let(:source_two) { double('two') }
    let(:sources) { [ source_one, source_two ] }

    before { berksfile.stub(sources: sources) }

    it "sends the message #universe on each source" do
      source_one.should_receive(:universe)
      source_two.should_receive(:universe)

      subject.build_universe
    end
  end

  describe "#run" do
    context 'when a lockfile is not present' do
      pending
    end

    context 'when a value for :except is given' do
      pending
    end

    context 'when a value for :only is given' do
      pending
    end
  end

  describe "#verify_licenses!" do
    pending
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
berkshelf-3.0.0.beta4 spec/unit/berkshelf/installer_spec.rb
berkshelf-3.0.0.beta3 spec/unit/berkshelf/installer_spec.rb
berkshelf-3.0.0.beta2 spec/unit/berkshelf/installer_spec.rb
berkshelf-3.0.0.beta1 spec/unit/berkshelf/installer_spec.rb