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



92
# File 'lib/quicktest.rb', line 92

def after(  *args, &block ) @@after_block  = [args, block] end

#before(*args, &block) ⇒ Object



91
# File 'lib/quicktest.rb', line 91

def before( *args, &block ) @@before_block = [args, block] end

#it(specification, &block) ⇒ Object



93
94
95
96
# File 'lib/quicktest.rb', line 93

def it specification, &block
  @@quicktests[(TestRunner.methods.pop.to_s << ' ' << specification)] = block
  TestRunner.methods.clear
end