Skip to content

Commit

Permalink
Silence Mocha warnings
Browse files Browse the repository at this point in the history
Deprecation warnings are incorrect because there is a misunderstanding
around the Ruby keyword arguments change in 3.0.

Ref: freerange/mocha#593

Close activeadmin#876
  • Loading branch information
tagliala committed Oct 29, 2023
1 parent 67ef225 commit de9bc90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
require "active_model"
require "action_controller"

# TODO: Remove warning gem and the following lines when freerange/mocha#593 will be fixed
require "warning"
Warning.ignore(/Mocha deprecation warning .+ expected keyword arguments .+ but received positional hash/)

require 'rails-controller-testing'
Rails::Controller::Testing.install

Expand Down

0 comments on commit de9bc90

Please sign in to comment.