diff options
author | Tim Smith <tsmith@chef.io> | 2018-01-01 10:39:22 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-01-01 10:44:07 -0800 |
commit | 2cd379b12eac02246ecc12b5e3cbb51069c9cedc (patch) | |
tree | e82f1be3ff2883ebfb61199b0c60a97da37e5182 /spec/unit/dsl | |
parent | bfe8487a26f99d3cd3e08fffea8cf6457631cf69 (diff) | |
download | chef-2cd379b12eac02246ecc12b5e3cbb51069c9cedc.tar.gz |
Remove previously deprecated mixins and Chef::DSL::Recipe::FullDSLchef14_deprecations
We wired these up previously with deprecations. They've been deprecated for a long time and are pretty rarely used on the Supermarket. Additionally we have Foodcritic rules to detect their usage:
FC102: Deprecated Chef::DSL::Recipe::FullDSL class used
FC100: Deprecated Chef::Mixin::Language mixin used
FC099: Deprecated Chef::Mixin::LanguageIncludeRecipe mixin used
FC098: Deprecated Chef::Mixin::RecipeDefinitionDSLCore mixin used
FC097: Deprecated Chef::Mixin::LanguageIncludeAttribute mixin used
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/dsl')
-rw-r--r-- | spec/unit/dsl/recipe_spec.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/unit/dsl/recipe_spec.rb b/spec/unit/dsl/recipe_spec.rb index bc97ecc029..cd01079c15 100644 --- a/spec/unit/dsl/recipe_spec.rb +++ b/spec/unit/dsl/recipe_spec.rb @@ -24,11 +24,6 @@ class RecipeDSLExampleClass include Chef::DSL::Recipe end -FullRecipeDSLExampleClass = Struct.new(:cookbook_name, :recipe_name) -class FullRecipeDSLExampleClass - include Chef::DSL::Recipe::FullDSL -end - RecipeDSLBaseAPI = Struct.new(:cookbook_name, :recipe_name) class RecipeDSLExampleSubclass < RecipeDSLBaseAPI include Chef::DSL::Recipe @@ -41,14 +36,6 @@ describe Chef::DSL::Recipe do let(:cookbook_name) { "example_cb" } let(:recipe_name) { "example_recipe" } - it "tracks when it is included via FullDSL" do - expect(Chef::DSL::Recipe::FullDSL.descendants).to include(FullRecipeDSLExampleClass) - end - - it "doesn't track what is included via only the recipe DSL" do - expect(Chef::DSL::Recipe::FullDSL.descendants).not_to include(RecipeDSLExampleClass) - end - shared_examples_for "A Recipe DSL Implementation" do it "responds to cookbook_name" do |