Fix test
This commit is contained in:
parent
9d329c8382
commit
fbcb5a728e
3 changed files with 4 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -69,6 +69,7 @@ gem 'oj', '~> 3.14'
|
||||||
gem 'ox', '~> 2.14'
|
gem 'ox', '~> 2.14'
|
||||||
gem 'parslet'
|
gem 'parslet'
|
||||||
gem 'premailer-rails'
|
gem 'premailer-rails'
|
||||||
|
gem 'private_address_check', '~> 0.5'
|
||||||
gem 'public_suffix', '~> 6.0'
|
gem 'public_suffix', '~> 6.0'
|
||||||
gem 'pundit', '~> 2.3'
|
gem 'pundit', '~> 2.3'
|
||||||
gem 'rack-attack', '~> 6.6'
|
gem 'rack-attack', '~> 6.6'
|
||||||
|
|
|
@ -641,6 +641,7 @@ GEM
|
||||||
actionmailer (>= 3)
|
actionmailer (>= 3)
|
||||||
net-smtp
|
net-smtp
|
||||||
premailer (~> 1.7, >= 1.7.9)
|
premailer (~> 1.7, >= 1.7.9)
|
||||||
|
private_address_check (0.5.0)
|
||||||
propshaft (0.9.0)
|
propshaft (0.9.0)
|
||||||
actionpack (>= 7.0.0)
|
actionpack (>= 7.0.0)
|
||||||
activesupport (>= 7.0.0)
|
activesupport (>= 7.0.0)
|
||||||
|
@ -1056,6 +1057,7 @@ DEPENDENCIES
|
||||||
pg (~> 1.5)
|
pg (~> 1.5)
|
||||||
pghero
|
pghero
|
||||||
premailer-rails
|
premailer-rails
|
||||||
|
private_address_check (~> 0.5)
|
||||||
propshaft
|
propshaft
|
||||||
public_suffix (~> 6.0)
|
public_suffix (~> 6.0)
|
||||||
puma (~> 6.3)
|
puma (~> 6.3)
|
||||||
|
|
|
@ -127,7 +127,7 @@ describe Admin::SystemCheck::ElasticsearchCheck do
|
||||||
end
|
end
|
||||||
|
|
||||||
def stub_elasticsearch_error
|
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(client).to receive(:info).and_raise(Elasticsearch::Transport::Transport::Error)
|
||||||
allow(Chewy).to receive(:client).and_return(client)
|
allow(Chewy).to receive(:client).and_return(client)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue