Hi Serghuei What you mention is caching on the serialiser level unless I’m mistaken? I don’t see any reference to caching that would affect `find` however I could be wrong about your code!
My advice should still be relevant either way, you need to decide if your updates bust the cache, or wether you want to ignore the cache in tests only. Happy testing! Jon Rowe --------------------------- [email protected] jonrowe.co.uk On 25 April 2019 at 09:27, Serguei Cambour wrote: > Yeah, John, as I'm using active_model_serializers > (https://github.com/rails-api/active_model_serializers/tree/0-10-stable/docs) > gem, it makes it possible to define caching in a serializer > (https://github.com/rails-api/active_model_serializers/blob/0-10-stable/docs/general/caching.md) > (model level). > What I was trying to achieve is to fix failing specs that passed before > adding caching in serializers. > > Thank you for your response. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/dejalu-217-8bf2c832-12d2-409f-a150-68ab4e73a1ce%40jonrowe.co.uk. For more options, visit https://groups.google.com/d/optout.
