lib/minitest-chef-handler/resources.rb in minitest-chef-handler-1.0.3 vs lib/minitest-chef-handler/resources.rb in minitest-chef-handler-1.1.0

- old
+ new

@@ -18,10 +18,10 @@ # in Chef 10.14.0 an additional argument was added to Chef::Platform.provider_for_resource # so we check the version here and use it if it is available if Gem::Version.new(::Chef::VERSION) < Gem::Version.new("10.14.0") provider = ::Chef::Platform.provider_for_resource(res) else - provider = ::Chef::Platform.provider_for_resource(res, :create) + provider = res.provider_for_action(:create) end provider.load_current_resource provider.current_resource end