module RSpec::Rails::ViewExampleGroup::ClassMethods

def _default_helper

def _default_helper
  base = metadata[:description].split('/')[0..-2].join('/')
  (base.camelize + 'Helper').constantize unless base.to_s.empty?
rescue NameError
  nil
end

def _default_helpers

def _default_helpers
  helpers = [_default_helper].compact
  helpers << ApplicationHelper if Object.const_defined?('ApplicationHelper')
  helpers
end