Files

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 28
def _default_helper
  base = metadata[:example_group][:description].split('/').first
  (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 35
def _default_helpers
  helpers = [_default_helper].compact
  helpers << ApplicationHelper if Object.const_defined?('ApplicationHelper')
  helpers
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.