From 4c20b8529a30962bf9c5fbc0c80158cae6582b02 Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Tue, 13 Aug 2024 18:54:44 +0900 Subject: [PATCH 1/3] chore: update test-prof, etc. --- mihari.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mihari.gemspec b/mihari.gemspec index 9932a8cb..eb5b4f90 100644 --- a/mihari.gemspec +++ b/mihari.gemspec @@ -61,7 +61,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "simplecov-lcov", "~> 0.8" spec.add_development_dependency "simplecov", "~> 0.22" spec.add_development_dependency "standard", "~> 1.39.2" - spec.add_development_dependency "test-prof", "~> 1.3.3" + spec.add_development_dependency "test-prof", "~> 1.4.0" spec.add_development_dependency "timecop", "~> 0.9.10" spec.add_development_dependency "vcr", "~> 6.2" spec.add_development_dependency "webmock", "~> 3.23.1" @@ -95,7 +95,7 @@ Gem::Specification.new do |spec| spec.add_dependency "launchy", "3.0.1" spec.add_dependency "memo_wise", "1.9.0" spec.add_dependency "normalize_country", "0.3.2" - spec.add_dependency "parallel", "1.26.1" + spec.add_dependency "parallel", "1.26.2" spec.add_dependency "plissken", "3.0.0" spec.add_dependency "public_suffix", "6.0.1" spec.add_dependency "puma", "6.4.2" From 706b839ea3f9724f9ef79e38724140be8a69315c Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Tue, 13 Aug 2024 19:05:39 +0900 Subject: [PATCH 2/3] fix: set connection --- spec/spec_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ebc4aa4f..8f97d545 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -93,7 +93,9 @@ def authorization_field(username, password) end end -require "test_prof/recipes/rspec/let_it_be" +Mihari::Database.with_db_connection do + require "test_prof/recipes/rspec/let_it_be" +end # reload dummy/sanitized config values Mihari.config.reload From 44f6efb0e83e43aa89256f1ca49e95649819aea8 Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Sat, 17 Aug 2024 08:43:21 +0900 Subject: [PATCH 3/3] chore: add comment [skip ci] --- spec/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8f97d545..b789bb1b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -93,6 +93,7 @@ def authorization_field(username, password) end end +# NOTE: since test-prof v1.4.0, it needs to be required with the connection Mihari::Database.with_db_connection do require "test_prof/recipes/rspec/let_it_be" end