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



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

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

#before(*args, &block) ⇒ Object



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

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

#it(specification, &block) ⇒ Object



97
98
99
100
# File 'lib/quicktest.rb', line 97

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