module ChefSpec::API::Described
def described_cookbook
-
(String)
-
Other tags:
- Example: Using +described_cookbook+ in a context block -
def described_cookbook described_recipe.split("::").first end
def described_recipe
-
(String)
-
Other tags:
- Example: Using +described_recipe+ in the +ChefSpec::SoloRunner+ -
def described_recipe scope = is_a?(Class) ? self : self.class metahash = scope.metadata metahash = metahash[:parent_example_group] while metahash.key?(:parent_example_group) metahash[:description].to_s end