From fbcb5a728e451c89da98443a9ace834034745ffe Mon Sep 17 00:00:00 2001 From: KMY Date: Fri, 5 Jul 2024 08:39:40 +0900 Subject: [PATCH] Fix test --- Gemfile | 1 + Gemfile.lock | 2 ++ spec/lib/admin/system_check/elasticsearch_check_spec.rb | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index f0147e74a3e8dd..ce585ccd1bf49e 100644 --- a/Gemfile +++ b/Gemfile @@ -69,6 +69,7 @@ gem 'oj', '~> 3.14' gem 'ox', '~> 2.14' gem 'parslet' gem 'premailer-rails' +gem 'private_address_check', '~> 0.5' gem 'public_suffix', '~> 6.0' gem 'pundit', '~> 2.3' gem 'rack-attack', '~> 6.6' diff --git a/Gemfile.lock b/Gemfile.lock index 56f13078d4c3fd..b93aa3c2787f85 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -641,6 +641,7 @@ GEM actionmailer (>= 3) net-smtp premailer (~> 1.7, >= 1.7.9) + private_address_check (0.5.0) propshaft (0.9.0) actionpack (>= 7.0.0) activesupport (>= 7.0.0) @@ -1056,6 +1057,7 @@ DEPENDENCIES pg (~> 1.5) pghero premailer-rails + private_address_check (~> 0.5) propshaft public_suffix (~> 6.0) puma (~> 6.3) diff --git a/spec/lib/admin/system_check/elasticsearch_check_spec.rb b/spec/lib/admin/system_check/elasticsearch_check_spec.rb index a885640ce0c603..8f210579d000ac 100644 --- a/spec/lib/admin/system_check/elasticsearch_check_spec.rb +++ b/spec/lib/admin/system_check/elasticsearch_check_spec.rb @@ -127,7 +127,7 @@ 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