diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-24 10:48:43 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-24 10:48:43 -0700 |
commit | 57cdbe124f63e47cab960e714572539d3979b90f (patch) | |
tree | 0b4687f9090de23502bea8c01aeb643290ec7ada /spec | |
parent | 9e00864cce2ba88ca5a952c3cc98ee15d22f84f8 (diff) | |
download | chef-57cdbe124f63e47cab960e714572539d3979b90f.tar.gz |
Fix API break in 12.3.0.rc.0
provides? on a provider was passed the full resource. provides? on
a resource class cannot be passed the resource and must be passed the
declared_type instead. i tried to make them the same, but that would
change the API on the provider.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider_resolver_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/provider_resolver_spec.rb b/spec/unit/provider_resolver_spec.rb index 718eebfdf4..bdf6d06e09 100644 --- a/spec/unit/provider_resolver_spec.rb +++ b/spec/unit/provider_resolver_spec.rb @@ -46,6 +46,10 @@ describe Chef::ProviderResolver do let(:resource) { double(Chef::Resource, provider: provider, resource_name: resource_name) } + before do + allow(resource).to receive(:is_a?).with(Chef::Resource).and_return(true) + end + describe "resolving service resource" do def stub_service_providers(*services) services ||= [] |