We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d447b commit 0f43111Copy full SHA for 0f43111
spec/rails/rails_spec_helper.rb
@@ -33,8 +33,8 @@ def form_authenticity_token(form_options: {})
33
34
def mock_action_view(assigns = {})
35
controller = ActionView::TestCase::TestController.new
36
- ActionView::Base.send :include, ActionView::Helpers
37
- ActionView::Base.send :include, AdditionalHelpers
+ ActionView::Base.include(ActionView::Helpers)
+ ActionView::Base.include(AdditionalHelpers)
38
context = ActionView::LookupContext.new(ActionController::Base.view_paths)
39
ActionView::Base.new(context, assigns, controller)
40
end
0 commit comments