Sha256: b783862e2e7318cb3702a79b865783bd2076058b8b2e0b385f1bd6c5d128850d

Contents?: true

Size: 944 Bytes

Versions: 23

Compression:

Stored size: 944 Bytes

Contents

require 'spec_helper'

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

  describe "#build_universe" do
    let(:source_one) { double('one', uri: 'https://supermarket.chef.io') }
    let(:source_two) { double('two', uri: 'https://api.chef.org') }
    let(:sources) { [ source_one, source_two ] }

    before { allow(berksfile).to receive_messages(sources: sources) }

    it "sends the message #universe on each source" do
      expect(source_one).to receive(:build_universe)
      expect(source_two).to receive(:build_universe)

      subject.build_universe
    end
  end

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

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

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
berkshelf-5.5.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-5.4.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-5.3.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-5.2.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-5.1.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-5.0.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.3.5 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.3.3 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.3.2 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.3.1 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.3.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.2.3 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.2.2 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.2.1 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.2.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.1.1 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.1.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.0.1 spec/unit/berkshelf/installer_spec.rb
berkshelf-4.0.0 spec/unit/berkshelf/installer_spec.rb
berkshelf-3.3.0 spec/unit/berkshelf/installer_spec.rb