diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-08 10:10:26 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-08 15:21:15 -0700 |
commit | 4d5d368f4de2f7c117dca813f099414cdf759a75 (patch) | |
tree | e5a7ecdeee356e191545fdf8320a6a0b03d2d6d9 | |
parent | 299a8d1ee016b3934027b96e1e45bc5c8eaff632 (diff) | |
download | chef-4d5d368f4de2f7c117dca813f099414cdf759a75.tar.gz |
Stub reading of validation key
-rw-r--r-- | spec/unit/knife/bootstrap_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb index 62033cc1dc..5e22a41f4e 100644 --- a/spec/unit/knife/bootstrap_spec.rb +++ b/spec/unit/knife/bootstrap_spec.rb @@ -365,6 +365,8 @@ describe Chef::Knife::Bootstrap do before do Chef::Config[:trusted_certs_dir] = trusted_certs_dir + IO.stub(:read).and_call_original + IO.stub(:read).with("/etc/chef/validation.pem").and_return("-----BEGIN...") end it "creates /etc/chef/trusted_certs" do |