Module: RunningMan::Block::TestClassMethods
- Defined in:
- lib/running_man/block.rb
Instance Method Summary collapse
-
#setup_once(&block) ⇒ Object
Runs the given block.
- #teardown_once(&block) ⇒ Object
Instance Method Details
#setup_once(&block) ⇒ Object
Runs the given block
5 6 7 |
# File 'lib/running_man/block.rb', line 5 def setup_once(&block) RunningMan::Block.new(block).setup(self) end |
#teardown_once(&block) ⇒ Object
9 10 11 |
# File 'lib/running_man/block.rb', line 9 def teardown_once(&block) final_teardowns << RunningMan::Block.new(block) end |