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