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.



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

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