Sha256: 97f7ef1860df2c19f45b1add2caa386f4e519a967d661d1b58d5677c7189be2e
Contents?: true
Size: 584 Bytes
Versions: 9
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' describe Berkshelf::Cli do let(:subject) { described_class.new } let(:berksfile) { double('Berksfile') } let(:cookbooks) { ['mysql'] } describe '#upload' do it 'calls to upload with params if passed in cli' do Berkshelf::Berksfile.should_receive(:from_file).and_return(berksfile) berksfile.should_receive(:upload).with(include(:skip_syntax_check => true, :freeze => false, :cookbooks => cookbooks)) subject.options[:skip_syntax_check] = true subject.options[:no_freeze] = true subject.upload('mysql') end end end
Version data entries
9 entries across 9 versions & 1 rubygems