We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec1de86 commit 412666aCopy full SHA for 412666a
spec/support/disable_sleep.rb
@@ -0,0 +1,9 @@
1
+# frozen_string_literal: true
2
+
3
+RSpec.configure do |config|
4
+ # テスト中の不要な sleep を無効化して高速化する
5
+ config.before(:each) do
6
+ allow_any_instance_of(EventService::Providers::Connpass ).to receive(:sleep)
7
+ allow_any_instance_of(EventService::Providers::Doorkeeper).to receive(:sleep)
8
+ end
9
+end
0 commit comments