Module: Cheffish::RSpec::RepositorySupport

Included in:
ChefRunSupport
Defined in:
lib/cheffish/rspec/repository_support.rb

Instance Method Summary collapse

Instance Method Details

#when_the_repository(desc, *tags, &block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/cheffish/rspec/repository_support.rb', line 4

def when_the_repository(desc, *tags, &block)
  context("when the chef repo #{desc}", *tags) do
    include_context "with a chef repo"
    extend WhenTheRepositoryClassMethods
    module_eval(&block)
  end
end