Fix deprecated use of #stub in payment spec

Fixes:

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/models/spree/payment_spec.rb:10:in `block (3 levels) in <top (required)>'.
     RuntimeError:

       stubbed models are not allowed to access the database - Spree::Product#touch(updated_at,{:time=>2021-04-10 14:24:50 UTC})
This commit is contained in:
Matt-Yorkley
2021-04-10 15:38:21 +01:00
committed by Andy Brett
parent be6fd23ebc
commit a891ac1cdf

Diff Content Not Available