DEV: Fix mocha deprecations (#18828)

It now supports strict keyword argument matching by default.
This commit is contained in:
Jarek Radosz
2022-11-02 10:47:59 +01:00
committed by GitHub
parent b9bcb225f2
commit c32fe340f0
14 changed files with 45 additions and 40 deletions

View File

@ -190,7 +190,7 @@ RSpec.describe DiscoursePluginRegistry do
describe '.register_archetype' do
it "delegates archetypes to the Archetype component" do
Archetype.expects(:register).with('threaded', hello: 123)
Archetype.expects(:register).with('threaded', { hello: 123 })
registry_instance.register_archetype('threaded', hello: 123)
end
end