diff options
Diffstat (limited to 'chef/spec/unit/client_spec.rb')
-rw-r--r-- | chef/spec/unit/client_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chef/spec/unit/client_spec.rb b/chef/spec/unit/client_spec.rb index 9497865c73..89caa46de9 100644 --- a/chef/spec/unit/client_spec.rb +++ b/chef/spec/unit/client_spec.rb @@ -230,6 +230,12 @@ shared_examples_for Chef::Client do @node[:recipes].length.should == 1 @node[:recipes].should include("cookbook1") end + + it "should set the environment from the specified configuration value" do + Chef::Config[:environment] = "A" + @client.build_node + @node.chef_environment.should == "A" + end end describe "when a run list override is provided" do |