Permalink
Browse files

Update usage of ::Chef::Platform.provider_for_resource to pass an action

  • Loading branch information...
1 parent 47ea14e commit 64e3eb5cb221ca6ff78ea10b71d52c718c9eb7af Leif Madsen committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/minitest-chef-handler/resources.rb
  2. +1 −1 minitest-chef-handler.gemspec
@@ -14,7 +14,7 @@ def self.register_resource(resource, *required_args)
required_args.each do |arg|
res.send(arg, options.first[arg])
end
- provider = ::Chef::Platform.provider_for_resource(res)
+ provider = ::Chef::Platform.provider_for_resource(res, :create)
provider.load_current_resource
provider.current_resource
end
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.name = "minitest-chef-handler"
gem.require_paths = ["lib"]
- gem.version = '0.6.2'
+ gem.version = '0.6.3'
gem.add_dependency('minitest')
gem.add_dependency('chef')

0 comments on commit 64e3eb5

Please sign in to comment.