mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-01 06:41:41 +00:00
Fixes deprecation warnings on authorizer_spec
This commit is contained in:
@@ -170,7 +170,7 @@ module Reporting
|
||||
|
||||
def stub_model(model, params)
|
||||
model.new.tap do |instance|
|
||||
instance.stub(params)
|
||||
allow(instance).to receive_messages(params)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user