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