How (not) to integrate Elasticsearch testing with RSpec
In this talk I want to share my experience in development of an integration testing tool for a search engine using RSpec.
Usually developers just stub requests to Elastic, then one spec checks that application has sent a request and received mocked data. But what to do if someone insists on covering responses from a real search engine with specs? I encountered several problems along the way, I hope this talk will prevent people from making my mistakes.