diff options
| author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-16 10:58:58 -0700 |
|---|---|---|
| committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-03-16 10:58:58 -0700 |
| commit | 259b42cd77e91a0194e17bd2bee639f9240b3b75 (patch) | |
| tree | b7c906c54af8d84be92f1fa4557b98886785dacc /spec/unit/lwrp_spec.rb | |
| parent | 17ca25869fd9e0ce0a4ec013a5dc39549ecaa6f7 (diff) | |
| download | chef-259b42cd77e91a0194e17bd2bee639f9240b3b75.tar.gz | |
deprecate Chef::DSL::Recipe::FullDSLlcg/deprecate-fulldsl
this module was created out of a bit of excessive paranoia instead of
simply adding mixins that we always use with Chef::DSL::Recipe directly
to Chef::DSL::Recipe. lets try and YAGNI this class and just add it
directly. these modules are already injected into everyone's recipes
and providers, so I can't imagine a huge amount of backcompat breaks.
Diffstat (limited to 'spec/unit/lwrp_spec.rb')
| -rw-r--r-- | spec/unit/lwrp_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb index 937915055e..6eba001af4 100644 --- a/spec/unit/lwrp_spec.rb +++ b/spec/unit/lwrp_spec.rb @@ -755,16 +755,16 @@ 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) - Chef::DSL::Recipe::FullDSL.send(:include, MyAwesomeDSLExensionClass) + Chef::DSL::Recipe.send(:include, MyAwesomeDSLExensionClass) end it "lets you call your DSL from a recipe" do - Chef::DSL::Recipe::FullDSL.send(:include, MyAwesomeDSLExensionClass) + Chef::DSL::Recipe.send(:include, MyAwesomeDSLExensionClass) expect(recipe.my_awesome_dsl_extension("foo")).to eql("foo") end it "lets you call your DSL from a provider" do - Chef::DSL::Recipe::FullDSL.send(:include, MyAwesomeDSLExensionClass) + Chef::DSL::Recipe.send(:include, MyAwesomeDSLExensionClass) resource = MyAwesomeResource.new("name", run_context) run_context.resource_collection << resource |
