Module: MiniTest
- Defined in:
- lib/minitest/unit.rb,
lib/minitest/mock.rb
Overview
A simple and clean mock object framework.
Defined Under Namespace
Modules: Assertions, Expectations Classes: Assertion, BacktraceFilter, Mock, Skip, Spec, Unit
Class Attribute Summary collapse
-
.backtrace_filter ⇒ Object
Filter object for backtraces.
Class Method Summary collapse
-
.const_missing(name) ⇒ Object
:nodoc:.
-
.filter_backtrace(bt) ⇒ Object
:nodoc:.
Class Attribute Details
.backtrace_filter ⇒ Object
Filter object for backtraces.
44 45 46 |
# File 'lib/minitest/unit.rb', line 44 def backtrace_filter @backtrace_filter end |
Class Method Details
.const_missing(name) ⇒ Object
:nodoc:
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/minitest/unit.rb', line 18 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:
71 72 73 |
# File 'lib/minitest/unit.rb', line 71 def self.filter_backtrace bt # :nodoc: backtrace_filter.filter bt end |