Module: MiniTest
- Defined in:
- lib/minitest/mock.rb,
lib/minitest/unit.rb
Overview
Minimal (mostly drop-in) replacement for test-unit.
:include: README.txt
Defined Under Namespace
Modules: Assertions, Expectations Classes: Assertion, BacktraceFilter, Mock, Skip, Spec, Unit
Class Attribute Summary collapse
-
.backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
Class Method Summary collapse
-
.const_missing(name) ⇒ Object
:nodoc:.
-
.filter_backtrace(bt) ⇒ Object
:nodoc:.
Class Attribute Details
.backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
36 37 38 |
# File 'lib/minitest/unit.rb', line 36 def backtrace_filter @backtrace_filter end |
Class Method Details
.const_missing(name) ⇒ Object
:nodoc:
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/minitest/unit.rb', line 13 def self.const_missing name # :nodoc: case name when :MINI_DIR then msg = "MiniTest::MINI_DIR was removed. Don't violate other's internals." warn "WAR\NING: #{msg}" warn "WAR\NING: Used by #{caller.first}." const_set :MINI_DIR, "bad value" else super end end |
.filter_backtrace(bt) ⇒ Object
:nodoc:
63 64 65 |
# File 'lib/minitest/unit.rb', line 63 def self.filter_backtrace bt # :nodoc: backtrace_filter.filter bt end |