Module: QuickTest

Defined in:
lib/quicktest.rb

Overview

TODO allow self.quicktest after instance method, and quicktest after a class method test module instance methods by setting the quicktest object to include them into

Defined Under Namespace

Modules: RSpecTestRunner, Tracer Classes: TestRunner

Class Attribute Summary collapse

Class Attribute Details

.ignore_first_method_addedObject

don’t record the fact that we add Module.method_added



12
13
14
# File 'lib/quicktest.rb', line 12

def ignore_first_method_added
  @ignore_first_method_added
end

.include_module_intoObject

when testing module instance methods this defines the class to include a module into user sets this by defining self.quicktest_include_into in a module otherwise, a generic class is used



21
22
23
# File 'lib/quicktest.rb', line 21

def include_module_into
  @include_module_into
end

.last_selfObject

Returns the value of attribute last_self.



23
24
25
# File 'lib/quicktest.rb', line 23

def last_self
  @last_self
end

.runnerObject

set which code will be running the tests



15
16
17
# File 'lib/quicktest.rb', line 15

def runner
  @runner
end

.runner_moduleObject

set which code will be running the tests



15
16
17
# File 'lib/quicktest.rb', line 15

def runner_module
  @runner_module
end