diff options
-rw-r--r-- | spec/unit/provider/windows_env_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/provider/windows_env_spec.rb b/spec/unit/provider/windows_env_spec.rb index cd4bc161a4..5d14128230 100644 --- a/spec/unit/provider/windows_env_spec.rb +++ b/spec/unit/provider/windows_env_spec.rb @@ -20,9 +20,11 @@ require "spec_helper" describe Chef::Provider::WindowsEnv, :windows_only do - before do - run_context = Chef::RunContext.new(Chef::Node.new, {}, Chef::EventDispatch::Dispatcher.new) + let(:run_context) do + Chef::RunContext.new(Chef::Node.new, {}, Chef::EventDispatch::Dispatcher.new) + end + before do @new_resource = Chef::Resource::WindowsEnv.new("FOO") @new_resource.value("bar") @new_resource.user("<System>") |