Move client location

This commit is contained in:
Matt Jankowski 2024-05-02 16:06:16 -04:00
parent 5f2abf10eb
commit 63c4a5ba06

View file

@ -127,7 +127,7 @@ describe Admin::SystemCheck::ElasticsearchCheck do
end
def stub_elasticsearch_error
client = instance_double(Elasticsearch::Transport::Client)
client = instance_double(Elasticsearch::Client)
allow(client).to receive(:info).and_raise(Elasticsearch::Transport::Transport::Error)
allow(Chewy).to receive(:client).and_return(client)
end