Class/Module Index [+]

Quicksearch

RSpec::Rails::ViewExampleGroup::ClassMethods

Public Instance Methods

_default_helper() click to toggle source
# File lib/rspec/rails/example/view_example_group.rb, line 12
def _default_helper
  base = metadata[:example_group][:description].split('/')[0..-2].join('/')
  (base.camelize + 'Helper').constantize if base
rescue NameError
  nil
end
_default_helpers() click to toggle source
# File lib/rspec/rails/example/view_example_group.rb, line 19
def _default_helpers
  helpers = [_default_helper].compact
  helpers << ApplicationHelper if Object.const_defined?('ApplicationHelper')
  helpers
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.