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 8 |
# File 'lib/running_man/block.rb', line 5 def setup_once(&block) test_block = RunningMan::Block.new(block) setup { test_block.run(self) } end |
#teardown_once(&block) ⇒ Object
10 11 12 |
# File 'lib/running_man/block.rb', line 10 def teardown_once(&block) final_teardowns << RunningMan::Block.new(block) end |