mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
The custom RSpec matchers they use raises the following deprecation warning ``` Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /home/runner/work/openfoodnetwork/openfoodnetwork/spec/support/matchers/delegate_matchers.rb:22:in `block (2 levels) in <top (required)>'. ``` It's not worth maintaining those matchers to test such implementation-related thing. Whether or not any delegations work is something that will be caught by integration tests or directly stubbing the collaborator object's methods. This stems from https://github.com/openfoodfoundation/openfoodnetwork/pull/6902.