Class: Testy::Test::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/testy.rb

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, setup = lambda{}, teardown = lambda{}, &block) ⇒ Context

Returns a new instance of Context.



70
71
72
# File 'lib/testy.rb', line 70

def initialize(name = nil, setup = lambda{}, teardown = lambda{}, &block)
  @name, @setup, @teardown, @block = name, setup, teardown, block
end