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

Version Path
berkshelf-2.0.18 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.17 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.16 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.15 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.14 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.13 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.12 spec/unit/berkshelf/cli_spec.rb
berkshelf-2.0.11 spec/unit/berkshelf/cli_spec.rb
berkshelf-3.0.0.beta4 spec/unit/berkshelf/cli_spec.rb