diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-06-25 22:48:28 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-06-26 12:08:55 -0700 |
commit | 0d0711a14c367f27f1ff7c62588d6a6172f967aa (patch) | |
tree | 7c6ab2730366e6813f6c04e329824dad90213887 /spec/unit/provider | |
parent | 3b1a84e032cf8a0451d28fd750b7a6da1625b03b (diff) | |
download | chef-0d0711a14c367f27f1ff7c62588d6a6172f967aa.tar.gz |
More missed run_context references.remove-bad-test-file
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit/provider')
-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>") |