module RSpec::Rails::ViewExampleGroup::ClassMethods

def _default_helper

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

def _default_helpers

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