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
-
.ignore_first_method_added ⇒ Object
don’t record the fact that we add Module.method_added.
-
.include_module_into ⇒ Object
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.
-
.last_self ⇒ Object
Returns the value of attribute last_self.
-
.runner ⇒ Object
set which code will be running the tests.
-
.runner_module ⇒ Object
set which code will be running the tests.
-
.test_method ⇒ Object
then name of the testing method, default is :quicktest.
Class Attribute Details
.ignore_first_method_added ⇒ Object
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_into ⇒ Object
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_self ⇒ Object
Returns the value of attribute last_self.
26 27 28 |
# File 'lib/quicktest.rb', line 26 def last_self @last_self end |
.runner ⇒ Object
set which code will be running the tests
18 19 20 |
# File 'lib/quicktest.rb', line 18 def runner @runner end |
.runner_module ⇒ Object
set which code will be running the tests
18 19 20 |
# File 'lib/quicktest.rb', line 18 def runner_module @runner_module end |
.test_method ⇒ Object
then name of the testing method, default is :quicktest
12 13 14 |
# File 'lib/quicktest.rb', line 12 def test_method @test_method end |