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(*args, &block) ⇒ Object
98 |
# File 'lib/quicktest.rb', line 98 def after( *args, &block ) @@after_block = [args, block] end |
#before(*args, &block) ⇒ Object
97 |
# File 'lib/quicktest.rb', line 97 def before( *args, &block ) @@before_block = [args, block] end |
#it(specification, &block) ⇒ Object
99 100 101 102 |
# File 'lib/quicktest.rb', line 99 def it specification, &block @@quicktests[(TestRunner.methods.pop.to_s << ' ' << specification)] = block TestRunner.methods.clear end |