summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2014-01-23 14:27:47 -0800
committerdanielsdeleo <dan@opscode.com>2014-01-23 14:27:47 -0800
commit7ef17a8e4cb03bc37ab345f5dfe85a6110573711 (patch)
tree273405469403bde4a0c96cd842ec485b5d3a4bc0 /spec
parentc7c33f71e640e1690fd94b2fd923898da64010d1 (diff)
downloadchef-7ef17a8e4cb03bc37ab345f5dfe85a6110573711.tar.gz
Return node from Chef::Client#build_node
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/client_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 6b7dd36930..f33f8d494c 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -333,7 +333,9 @@ shared_examples_for Chef::Client do
@node[:recipes].should be_nil
@client.policy_builder.stub!(:node).and_return(@node)
- @client.policy_builder.build_node
+
+ # chefspec and possibly others use the return value of this method
+ @client.build_node.should == @node
# check post-conditions.
@node[:roles].should_not be_nil