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



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

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



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

def include_module_into
  @include_module_into
end

.last_selfObject

Returns the value of attribute last_self.



26
27
28
# File 'lib/quicktest.rb', line 26

def last_self
  @last_self
end

.runnerObject

set which code will be running the tests



18
19
20
# File 'lib/quicktest.rb', line 18

def runner
  @runner
end

.runner_moduleObject

set which code will be running the tests



18
19
20
# File 'lib/quicktest.rb', line 18

def runner_module
  @runner_module
end

.test_methodObject

then name of the testing method, default is :quicktest



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

def test_method
  @test_method
end