Module: Spec::DSL

Defined in:
lib/minitest/dsl.rb

Instance Method Summary collapse

Instance Method Details

#bangsObject



6
7
8
9
# File 'lib/minitest/dsl.rb', line 6

def bangs
  @bangs ||= Set.new
  @bangs = @bangs + bangs_from_parent_scope
end

#let!(name, &block) ⇒ Object



11
12
13
14
# File 'lib/minitest/dsl.rb', line 11

def let!(name, &block)
  let(name, &block)
  bangs << name
end