diff options
Diffstat (limited to 'spec/support/shared/unit/resource/static_provider_resolution.rb')
-rw-r--r-- | spec/support/shared/unit/resource/static_provider_resolution.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/support/shared/unit/resource/static_provider_resolution.rb b/spec/support/shared/unit/resource/static_provider_resolution.rb index 147852598a..2bc4c70d95 100644 --- a/spec/support/shared/unit/resource/static_provider_resolution.rb +++ b/spec/support/shared/unit/resource/static_provider_resolution.rb @@ -43,12 +43,7 @@ def static_provider_resolution(opts={}) node } let(:events) { Chef::EventDispatch::Dispatcher.new } - let(:provider_resolver) { Chef::ProviderResolver.new(node) } - let(:run_context) { - run_context = Chef::RunContext.new(node, {}, events) - run_context.provider_resolver = provider_resolver - run_context - } + let(:run_context) { Chef::RunContext.new(node, {}, events) } let(:resource) { resource_class.new("foo", run_context) } it "should return a #{resource_class}" do |