Module: RSpec::Rails::HelperExampleGroup::InstanceMethods

Defined in:
lib/rspec/rails/example/helper_example_group.rb

Instance Method Summary collapse

Instance Method Details

#helperObject

Returns an instance of ActionView::Base with the helper being specified mixed in, along with any of the built-in rails helpers.



43
44
45
46
47
48
# File 'lib/rspec/rails/example/helper_example_group.rb', line 43

def helper
  _view.tap do |v|
    v.extend(ApplicationHelper) if defined?(ApplicationHelper)
    v.assign(view_assigns)
  end
end