mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
In order to make the spec fail if the controller was not thread safe, it uses breakpoints. One of those breakpoints was set for a method that has now been removed. I changed the method that is used for the breakpoint and changed `allow` to `expect` so that this spec will fail if we remove that method as well. Future version of Rspec will check if a mocked method actually exists but our version just mocks it anyway. This is one way how specs can become invalid after refactoring.
3.8 KiB
3.8 KiB