diff options
author | Thom May <thom@chef.io> | 2017-12-15 15:52:15 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-12-18 11:26:34 +0000 |
commit | 57732ab92cc315c6161fbdef4ee17ceaebffc656 (patch) | |
tree | 1b426b0cd5916098da2452b3706a11525bf46922 /spec | |
parent | d390c679654a92511f67e0a6fdebd211d5c84426 (diff) | |
download | chef-57732ab92cc315c6161fbdef4ee17ceaebffc656.tar.gz |
Specify a profile on the command line
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/knife_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb index 2b22dbc4f7..adaab11d55 100644 --- a/spec/unit/knife_spec.rb +++ b/spec/unit/knife_spec.rb @@ -47,6 +47,7 @@ describe Chef::Knife do allow(Chef::WorkstationConfigLoader).to receive(:new).and_return(config_loader) allow(config_loader).to receive(:explicit_config_file=) + allow(config_loader).to receive(:profile=) # Prevent gratuitous code reloading: allow(Chef::Knife).to receive(:load_commands) @@ -331,6 +332,7 @@ describe Chef::Knife do knife.config[:config_file] = fake_config config_loader = double("Chef::WorkstationConfigLoader", :load => true, :no_config_found? => false, :chef_config_dir => "/etc/chef", :config_location => fake_config) allow(config_loader).to receive(:explicit_config_file=).with(fake_config).and_return(fake_config) + allow(config_loader).to receive(:profile=) allow(Chef::WorkstationConfigLoader).to receive(:new).and_return(config_loader) end |