Sha256: e75c7caa463aed96d7d7820d913cbe771609607c629cea5b02e8b581e86d17c5

Contents?: true

Size: 814 Bytes

Versions: 22

Compression:

Stored size: 814 Bytes

Contents

require 'spec_helper'
require 'ey-core/cli/recipes/apply'

describe Ey::Core::Cli::Recipes::Apply do
  set_up_cli

  before(:each) do
    allow_any_instance_of(described_class).
      to receive(:run_chef).
      with(any_args).
      and_return(true)
  end

  context 'ey-core recipes apply' do
    it 'performs a main chef run' do
      expect(cli).to receive(:run_chef).with('main', environment, {no_wait: nil, verbose: nil, watch: nil})

      execute
      expect(kernel.exit_status).to eql(0)
    end
  end

  context 'ey-core recipes apply --quick' do
    arguments '--quick'

    it 'performs a quick chef run' do
      expect(cli).to receive(:run_chef).with('quick', environment, {no_wait: nil, verbose: nil, watch: nil})
      
      execute
      expect(kernel.exit_status).to eql(0)
    end
  end

end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
ey-core-3.6.4 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.6.3 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.6.1 spec/ey-core/cli/recipes/apply_spec.rb
groove-ey-core-3.6.3 spec/ey-core/cli/recipes/apply_spec.rb
groove-ey-core-3.6.2 spec/ey-core/cli/recipes/apply_spec.rb
groove-ey-core-3.6.1 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.5.0 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.4.4 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.4.2 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.4.1 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.4.0 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.3.1 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.3.0 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.6 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.5 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.4 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.3 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.2 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.1 spec/ey-core/cli/recipes/apply_spec.rb
ey-core-3.2.0 spec/ey-core/cli/recipes/apply_spec.rb