diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-02 10:49:38 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-04 13:52:44 -0800 |
commit | c4442ecb5769ee892000b7084cdd02b898a08aa6 (patch) | |
tree | 5839aa85c1eb1ece700765141fbb8c58979f78d6 | |
parent | c3552dc11831379a4b4753964451498e1340611e (diff) | |
download | chef-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-x | spec/functional/resource/env_spec.rb | 7 |
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) |