Closed DaniG2k closed 6 years ago
Hey @DaniG2k, please use Stack Overflow for questions. If you use Factory Bot, be sure to follow those instructions as well.
Thanks for your response. I've asked on SO already and am using the FactoryBot reindex
trait but it still doesn't seem to work as intended.
I'm trying to test a class with RSpec which makes use of Searchkick.
I have the following in my spec support directory:
and my test looks like this:
I should be receiving 1 result. However, Searchkick returns 0 results. This is not a problem with the facade since I've also tried with
Restaurant.search('*')
which should return all results but nothing is being returned.My Restaurant class looks like this:
Any idea what may be causing this? Any help would be much appreciated. Thanks in advance!