summaryrefslogtreecommitdiff
path: root/spec/unit/lwrp_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-03-21 11:54:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-03-21 13:53:29 -0700
commitaa2241ab17bc131c80f358f87006099fb108fb04 (patch)
tree2e827cb0b52f11ea2a9805c7439894b2c1d558e3 /spec/unit/lwrp_spec.rb
parenta3f7e9cd52e8901cbfc5dfa3d93c032dec2ddb7e (diff)
downloadchef-aa2241ab17bc131c80f358f87006099fb108fb04.tar.gz
allow use_inline_resources for core chef providers
* removes the DSL from InlineResources class * ActionClass is now responsible for mixing the DSL into action classes * apt_update provider converted over to use new syntax - does not need to mixin DeclareResource DSL - declares use_inline_resources - uses declare_resource instead of build_resource - converts def action_stuff to action :stuff - uses an execute resource instead of shell_out! - does not need the converge_by to update the action
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
-rw-r--r--spec/unit/lwrp_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb
index 6eba001af4..6574a91f13 100644
--- a/spec/unit/lwrp_spec.rb
+++ b/spec/unit/lwrp_spec.rb
@@ -754,7 +754,7 @@ describe "LWRP" do
it "lets you extend the recipe DSL" do
expect(Chef::Recipe).to receive(:include).with(MyAwesomeDSLExensionClass)
- expect(Chef::Provider::InlineResources).to receive(:include).with(MyAwesomeDSLExensionClass)
+ expect(Chef::Resource::ActionClass).to receive(:include).with(MyAwesomeDSLExensionClass)
Chef::DSL::Recipe.send(:include, MyAwesomeDSLExensionClass)
end