Sha256: 8fd785b02e608bade0b1a4b441f753f5cdfc66cc33a40d1a13f8e4d7b555a545
Contents?: true
Size: 927 Bytes
Versions: 2
Compression:
Stored size: 927 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.getchef.com') } let(:source_two) { double('two', uri: 'https://api.chef.org') } let(:sources) { [ source_one, source_two ] } before { berksfile.stub(sources: sources) } it "sends the message #universe on each source" do source_one.should_receive(:build_universe) source_two.should_receive(:build_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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
berkshelf-3.1.5 | spec/unit/berkshelf/installer_spec.rb |
berkshelf-3.1.4 | spec/unit/berkshelf/installer_spec.rb |