mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Fix mocha deprecations (#18828)
It now supports strict keyword argument matching by default.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user