Class: ActiveSupport::TestCase
- Defined in:
- lib/minitest/mustwonted/spec.rb
Instance Method Summary collapse
-
#method_missing(name, *args) ⇒ Object
Catching up the magick ‘be_smthing?` matchers.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
Catching up the magick ‘be_smthing?` matchers
48 49 50 51 52 53 54 55 56 |
# File 'lib/minitest/mustwonted/spec.rb', line 48 def method_missing(name, *args) if name.slice(0, 3) == 'be_' Minitest::MustWonted::Matcher::Magick.new(name, args) elsif respond_to?("assert_#{name}") Minitest::MustWonted::Matcher::Legacy.new(name, args, self) else super name, *args end end |