Module: Test::Unit::Priority
- Included in:
- TestCase
- Defined in:
- lib/test/unit/priority.rb,
lib/test/unit/priority.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Checker
Constant Summary
collapse
- @@enabled =
false
- @@default =
:normal
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.available_values ⇒ Object
.default ⇒ Object
32
33
34
|
# File 'lib/test/unit/priority.rb', line 32
def default
@@default || :normal
end
|
.default=(default) ⇒ Object
36
37
38
|
# File 'lib/test/unit/priority.rb', line 36
def default=(default)
@@default = default
end
|
.disable ⇒ Object
27
28
29
|
# File 'lib/test/unit/priority.rb', line 27
def disable
@@enabled = false
end
|
.enable ⇒ Object
21
22
23
24
25
|
# File 'lib/test/unit/priority.rb', line 21
def enable
require "fileutils"
require "tmpdir"
@@enabled = true
end
|
.enabled? ⇒ Boolean
17
18
19
|
# File 'lib/test/unit/priority.rb', line 17
def enabled?
@@enabled
end
|
Instance Method Details
#priority_teardown ⇒ Object