Class: ActionView::TestCase

Inherits:
Object show all
Defined in:
lib/minitest/rails/expectations.rb,
lib/minitest/rails/assertions.rb,
lib/minitest/rails.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.determine_default_helper_class(name) ⇒ Object

Resolve the helper or view from the test name when using the spec DSL


71
72
73
74
75
# File 'lib/minitest/rails.rb', line 71

def self.determine_default_helper_class(name)
  determine_constant_from_test_name(name) do |constant|
    Module === constant && !(Class === constant)
  end
end