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.



48
49
50
51
52
53
# File 'lib/rspec/rails/example/helper_example_group.rb', line 48

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