module GeneratorSpec::Matcher

Public Instance Methods

have_structure(&block) click to toggle source
# File lib/generator_spec/matcher.rb, line 133
def have_structure(&block)
  error = 'You must pass a block to have_structure (Use {} instead of do/end!)'
  raise RuntimeError, error unless block_given?
  Root.new(&block)
end