From 412666a4a438fb4109cb4468e17979764aaa10fc Mon Sep 17 00:00:00 2001 From: Yohei Yasukawa Date: Thu, 22 May 2025 02:20:47 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=96=E3=81=AE=E3=81=82?= =?UTF-8?q?=E3=82=8B=E3=83=86=E3=82=B9=E3=83=88=E7=92=B0=E5=A2=83=E3=81=A7?= =?UTF-8?q?=E3=81=AF=20sleep()=20=E3=82=92=E7=84=A1=E5=8A=B9=E5=8C=96?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E9=AB=98?= =?UTF-8?q?=E9=80=9F=E5=8C=96=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/support/disable_sleep.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/support/disable_sleep.rb diff --git a/spec/support/disable_sleep.rb b/spec/support/disable_sleep.rb new file mode 100644 index 000000000..f49d6226e --- /dev/null +++ b/spec/support/disable_sleep.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +RSpec.configure do |config| + # テスト中の不要な sleep を無効化して高速化する + config.before(:each) do + allow_any_instance_of(EventService::Providers::Connpass ).to receive(:sleep) + allow_any_instance_of(EventService::Providers::Doorkeeper).to receive(:sleep) + end +end