Module: QuickTest::RSpecTestRunner
- Defined in:
- lib/quicktest.rb
Overview
all public instance methods are RSpec method wrappers
Constant Summary collapse
- QuickTestIgnoreClasses =
[/^Spec/]
- QuickTestIncludeModules =
[Spec::Matchers]
- @@quicktests =
Hash.new
- @@after_block =
nil
- @@before_block =
nil
Instance Method Summary collapse
Instance Method Details
#after(&block) ⇒ Object
83 |
# File 'lib/quicktest.rb', line 83 def after( &block ); @@after_block = block end |
#before(&block) ⇒ Object
82 |
# File 'lib/quicktest.rb', line 82 def before( &block ); @@before_block = block end |
#it(specification, &block) ⇒ Object
84 85 86 87 |
# File 'lib/quicktest.rb', line 84 def it(specification, &block ) @@quicktests[(TestRunner.methods.pop.to_s << ' ' << specification)] = block TestRunner.methods.clear end |