diff options
author | Christopher Brown <cb@opscode.com> | 2009-12-21 17:20:43 -0800 |
---|---|---|
committer | Christopher Brown <cb@opscode.com> | 2009-12-22 11:19:53 -0800 |
commit | 545cd2cd05090dc748615bc2121f9c69cc59da0e (patch) | |
tree | 3dec6024236380a74257dead4d0dafc6ab2a4456 /chef/spec/unit/rest_spec.rb | |
parent | 9072546ebceb30cea5ac8d48c0964fb7e7777e01 (diff) | |
download | chef-545cd2cd05090dc748615bc2121f9c69cc59da0e.tar.gz |
remove rubyforge project stuff from Rakefiles, change rest.rb behaviour loading signing key, update log for verbose logging
Diffstat (limited to 'chef/spec/unit/rest_spec.rb')
-rw-r--r-- | chef/spec/unit/rest_spec.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/chef/spec/unit/rest_spec.rb b/chef/spec/unit/rest_spec.rb index 408a2b8892..944c84e386 100644 --- a/chef/spec/unit/rest_spec.rb +++ b/chef/spec/unit/rest_spec.rb @@ -1,5 +1,6 @@ # # Author:: Adam Jacob (<adam@opscode.com>) +# Author:: Christopher Brown (<cb@opscode.com>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # @@ -80,13 +81,6 @@ EOH }.should raise_error(Chef::Exceptions::PrivateKeyMissing) end - it "should raise a Chef::Exceptions::PrivateKeyMissing exception if the key cannot be read" do - File.stub!(:exists?).and_return(true) - File.stub!(:readable?).and_return(false) - lambda { - @rest.load_signing_key("/tmp/keyfile.pem") - }.should raise_error(Chef::Exceptions::PrivateKeyMissing) - end end describe "get_rest" do |