summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-03-02 10:49:38 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-03-04 13:52:44 -0800
commitc4442ecb5769ee892000b7084cdd02b898a08aa6 (patch)
tree5839aa85c1eb1ece700765141fbb8c58979f78d6
parentc3552dc11831379a4b4753964451498e1340611e (diff)
downloadchef-c4442ecb5769ee892000b7084cdd02b898a08aa6.tar.gz
add os to node stub
would be better to use a pristine copy of a real ohai run here since we're in a functional test.
-rwxr-xr-xspec/functional/resource/env_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/functional/resource/env_spec.rb b/spec/functional/resource/env_spec.rb
index 16caec14bf..b9dcd7b33a 100755
--- a/spec/functional/resource/env_spec.rb
+++ b/spec/functional/resource/env_spec.rb
@@ -29,14 +29,15 @@ describe Chef::Resource::Env, :windows_only do
let(:env_value_expandable) { '%SystemRoot%' }
let(:test_run_context) {
node = Chef::Node.new
+ node.default['os'] = 'windows'
node.default['platform'] = 'windows'
node.default['platform_version'] = '6.1'
empty_events = Chef::EventDispatch::Dispatcher.new
Chef::RunContext.new(node, {}, empty_events)
}
- let(:test_resource) {
- Chef::Resource::Env.new('unknown', test_run_context)
- }
+ let(:test_resource) {
+ Chef::Resource::Env.new('unknown', test_run_context)
+ }
before(:each) do
resource_lower = Chef::Resource::Env.new(chef_env_test_lower_case, test_run_context)