Module: MiniTest::Spec::Magic::Controller
- Included in:
- ActionController::TestCase
- Defined in:
- lib/minitest/spec/magic/controller.rb
Instance Method Summary collapse
Instance Method Details
#determine_default_controller_class(name) ⇒ Object
4 5 6 7 8 |
# File 'lib/minitest/spec/magic/controller.rb', line 4 def determine_default_controller_class(name) name.sub(/Test$/, '').constantize rescue NameError described_type end |