Skip to content

Commit

Permalink
Merge pull request #105 from opscode/pd-remove-excon-exception-spec-fix
Browse files Browse the repository at this point in the history
Excon exception spec fix, code change related to knife-cloud.
  • Loading branch information
Mukta Aphale committed May 21, 2014
2 parents afd92ed + b9db5b5 commit 1a8d4a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/functional/server_list_func_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Author:: Prabhu Das (<[email protected]>)
# Copyright:: Copyright (c) 2013-14 Opscode, Inc.
#
require 'spec_helper'
require 'chef/knife/openstack_server_list'
require 'chef/knife/cloud/openstack_service'
Expand Down Expand Up @@ -47,6 +50,7 @@

it "raise error on invalid chef-node-attribute set" do
instance.config[:chef_node_attribute] = "invalid_attribute"
instance.ui.should_receive(:fatal)
@node.should_receive(:attribute?).with("invalid_attribute").and_return(false)
instance.ui.should_receive(:error).with("The Node does not have a invalid_attribute attribute.")
expect { instance.run }.to raise_error
Expand Down

0 comments on commit 1a8d4a9

Please sign in to comment.