Skip to content

Commit

Permalink
Include is now public
Browse files Browse the repository at this point in the history
  • Loading branch information
ngan authored and javierjulio committed Mar 14, 2023
1 parent 00d447b commit 0f43111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rails/rails_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def form_authenticity_token(form_options: {})

def mock_action_view(assigns = {})
controller = ActionView::TestCase::TestController.new
ActionView::Base.send :include, ActionView::Helpers
ActionView::Base.send :include, AdditionalHelpers
ActionView::Base.include(ActionView::Helpers)
ActionView::Base.include(AdditionalHelpers)
context = ActionView::LookupContext.new(ActionController::Base.view_paths)
ActionView::Base.new(context, assigns, controller)
end
Expand Down

0 comments on commit 0f43111

Please sign in to comment.