Skip to content

Commit

Permalink
Avoid Mocha deprecation warning in test helper
Browse files Browse the repository at this point in the history
This avoids the following deprecation warning:

    Mocha deprecation warning at test/test_helper.rb:34:in `block in
    <main>': Configuration#reinstate_undocumented_behaviour_from_v1_9=
    is unnecessarily being set to false, because this is now the default
    value. Configuration#reinstate_undocumented_behaviour_from_v1_9=
    will be removed in the future, so you should avoid calling it.
  • Loading branch information
floehopper committed Oct 18, 2022
1 parent f17ed2f commit 4b62bcb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
Whitehall::Application.load_tasks if Rake::Task.tasks.empty?

Mocha.configure do |c|
c.reinstate_undocumented_behaviour_from_v1_9 = false
c.stubbing_non_existent_method = :prevent
end

Expand Down

0 comments on commit 4b62bcb

Please sign in to comment.