Move client location

This commit is contained in:
Matt Jankowski 2024-05-02 16:06:16 -04:00
parent 655efa2458
commit 2d54268fec
1 changed files with 1 additions and 1 deletions

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