Class: Test::Unit::TestCase
- Inherits:
-
MiniTest::Spec
- Object
- MiniTest::Spec
- Test::Unit::TestCase
- Extended by:
- MiniTest::Spec::Magic::Context
- Includes:
- MiniTest::Spec::Magic::Assertions, MiniTest::Spec::Magic::Expectations
- Defined in:
- lib/minitest/spec/magic.rb,
lib/minitest/spec/magic/testcase.rb
Overview
Extend Test::Unit::TestCase
Class Method Summary collapse
-
.method_defined?(sym, *args) ⇒ Boolean
Ensure ActiveSupport::TestCase::Declarative doesn’t override MiniTest::Spec’s ‘describe`.
Instance Method Summary collapse
Class Method Details
.method_defined?(sym, *args) ⇒ Boolean
Ensure ActiveSupport::TestCase::Declarative doesn’t override MiniTest::Spec’s ‘describe`
17 18 19 |
# File 'lib/minitest/spec/magic/testcase.rb', line 17 def self.method_defined?(sym, *args) sym.to_sym == :describe || super end |
Instance Method Details
#build_message(head, template = nil, *arguments) ⇒ Object
21 22 23 24 |
# File 'lib/minitest/spec/magic/testcase.rb', line 21 def (head, template=nil, *arguments) template &&= template.chomp template.gsub(/\?/) { arguments.shift.inspect.chomp } end |