This commit is contained in:
KMY 2024-07-05 08:39:40 +09:00
parent 9d329c8382
commit fbcb5a728e
3 changed files with 4 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