From 2cd379b12eac02246ecc12b5e3cbb51069c9cedc Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 1 Jan 2018 10:39:22 -0800 Subject: Remove previously deprecated mixins and Chef::DSL::Recipe::FullDSL 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 --- spec/unit/dsl/recipe_spec.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'spec') 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 -- cgit v1.2.1