Sha256: 6033efae812a8475d0679d1d5803304926a40f088abe69a4b19b6c912ce4da7a
Contents?: true
Size: 817 Bytes
Versions: 16
Compression:
Stored size: 817 Bytes
Contents
require 'spec_helper' ironfan_go! describe Chef::Knife::ClusterLaunch do let(:cluster) do Ironfan.load_cluster(:gunbai) end let(:target) do Ironfan.broker.discover!(cluster) end let(:computers) do Ironfan::Broker::Computers.receive( MultiJson.load( File.open(Pathname.path_to(:fixtures, 'gunbai_slice.json')))) end subject do described_class.new(slice) end context 'getting slice' do before do subject.stub(:relevant?){ true } subject.config[:yes] = true subject.config[:bootstrap] = true end context 'full slice' do let(:slice){ ['samurai-gunbai'] } it 'fails if there are multiple environments' do expect{ subject.run }.to raise_error("Cannot bootstrap multiple chef environments") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems