| Class | ActionView::TestCase |
| In: |
vendor/rails/actionpack/lib/action_view/test_case.rb
|
| Parent: | ActiveSupport::TestCase |
# File vendor/rails/actionpack/lib/action_view/test_case.rb, line 21
21: def determine_default_helper_class(name)
22: name.sub(/Test$/, '').constantize
23: rescue NameError
24: nil
25: end
# File vendor/rails/actionpack/lib/action_view/test_case.rb, line 13
13: def helper_class
14: if current_helper_class = read_inheritable_attribute(:helper_class)
15: current_helper_class
16: else
17: self.helper_class = determine_default_helper_class(name)
18: end
19: end
# File vendor/rails/actionpack/lib/action_view/test_case.rb, line 9
9: def tests(helper_class)
10: self.helper_class = helper_class
11: end