Method: Scope::TestCase.setup_once
- Defined in:
- lib/scope.rb
.setup_once(&block) ⇒ Object
setup_once blocks are run just once for a context, and not on a per-test basis. They are useful for integration tests with costly setup.
70 |
# File 'lib/scope.rb', line 70 def self.setup_once(&block) @contexts.last.setup_once = block end |