diff options
author | danielsdeleo <dan@opscode.com> | 2012-12-06 11:27:27 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-12-13 10:32:56 -0800 |
commit | 8071f0da0e4dd58186508a4a0211212590d708b3 (patch) | |
tree | fa534678e274e785f76be44bd70132c16183f6e3 | |
parent | 7d5dfbc0efc8e6a3431d034de2a61964bf9331ce (diff) | |
download | chef-8071f0da0e4dd58186508a4a0211212590d708b3.tar.gz |
[CHEF-3662] fix spec for ruby 1.8.7
Can only expect exception class, not an instance.
-rw-r--r-- | chef/spec/unit/api_client_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chef/spec/unit/api_client_spec.rb b/chef/spec/unit/api_client_spec.rb index d0a6b3369f..49e180ad43 100644 --- a/chef/spec/unit/api_client_spec.rb +++ b/chef/spec/unit/api_client_spec.rb @@ -193,8 +193,9 @@ describe Chef::ApiClient do @http_client.should_receive(:get).with("clients/lost-my-key").and_raise(@a_404_exception) end + it "raises a 404 error" do - lambda { Chef::ApiClient.reregister("lost-my-key") }.should raise_error(@a_404_exception) + lambda { Chef::ApiClient.reregister("lost-my-key") }.should raise_error(Net::HTTPServerException) end end |