Module: Maxitest
- Defined in:
- lib/maxitest/line.rb,
lib/maxitest/xit.rb,
lib/maxitest/helpers.rb,
lib/maxitest/let_all.rb,
lib/maxitest/pending.rb,
lib/maxitest/threads.rb,
lib/maxitest/timeout.rb,
lib/maxitest/version.rb,
lib/maxitest/hook_all.rb,
lib/maxitest/hook_all.rb,
lib/maxitest/interrupt.rb,
lib/maxitest/global_must.rb,
lib/maxitest/implicit_subject.rb,
lib/maxitest/verbose_backtrace.rb,
lib/maxitest/static_class_order.rb
Overview
this is a bit hacky / overwrites describe, so not included by default …
Defined Under Namespace
Modules: Helpers, HookAll, ImplicitSubject, InterruptHandler, LetAll, Line, Pending, Threads, Timeout, VerboseBacktrace, XitMethod
Constant Summary collapse
- VERSION =
"7.1.1"- Interrupted =
Class.new(StandardError)
Class Attribute Summary collapse
-
.hook_all_counter ⇒ Object
Returns the value of attribute hook_all_counter.
-
.interrupted ⇒ Object
Returns the value of attribute interrupted.
-
.static_class_order ⇒ Object
Returns the value of attribute static_class_order.
-
.timeout ⇒ Object
Returns the value of attribute timeout.
Class Method Summary collapse
-
.current_test ⇒ Object
Track current test instance for global must_* support.
- .current_test=(test) ⇒ Object
Class Attribute Details
.hook_all_counter ⇒ Object
Returns the value of attribute hook_all_counter.
4 5 6 |
# File 'lib/maxitest/hook_all.rb', line 4 def hook_all_counter @hook_all_counter end |
.interrupted ⇒ Object
Returns the value of attribute interrupted.
9 10 11 |
# File 'lib/maxitest/interrupt.rb', line 9 def interrupted @interrupted end |
.static_class_order ⇒ Object
Returns the value of attribute static_class_order.
4 5 6 |
# File 'lib/maxitest/static_class_order.rb', line 4 def static_class_order @static_class_order end |
.timeout ⇒ Object
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/maxitest/timeout.rb', line 7 def timeout @timeout end |
Class Method Details
.current_test ⇒ Object
Track current test instance for global must_* support
12 13 14 |
# File 'lib/maxitest/global_must.rb', line 12 def self.current_test Thread.current[:maxitest_current_test] end |
.current_test=(test) ⇒ Object
16 17 18 |
# File 'lib/maxitest/global_must.rb', line 16 def self.current_test=(test) Thread.current[:maxitest_current_test] = test end |