Module: RSpec::Rails::ViewExampleGroup::ClassMethods
- Defined in:
- lib/rspec/rails/example/view_example_group.rb
Instance Method Summary collapse
Instance Method Details
#_default_helper ⇒ Object
33 34 35 36 37 38 |
# File 'lib/rspec/rails/example/view_example_group.rb', line 33 def _default_helper base = [:example_group][:description].split('/').first (base.camelize + 'Helper').constantize if base rescue NameError nil end |
#_default_helpers ⇒ Object
40 41 42 43 44 |
# File 'lib/rspec/rails/example/view_example_group.rb', line 40 def _default_helpers helpers = [_default_helper].compact helpers << ApplicationHelper if Object.const_defined?('ApplicationHelper') helpers end |