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
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
43 44 45 |
# File 'lib/minitest/unit.rb', line 43 def backtrace_filter @backtrace_filter end |
Class Method Details
.const_missing(name) ⇒ Object
:nodoc:
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/minitest/unit.rb', line 20 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:
70 71 72 |
# File 'lib/minitest/unit.rb', line 70 def self.filter_backtrace bt # :nodoc: backtrace_filter.filter bt end |