From d0f5a3d7a467df3e78aad9ee717618856953c9ec Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 24 Aug 2017 09:29:40 +0900 Subject: [PATCH] `Sidekiq::Testing.fake!` is the default mode. --- spec/components/auth/github_authenticator_spec.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spec/components/auth/github_authenticator_spec.rb b/spec/components/auth/github_authenticator_spec.rb index 9113dc1cc2f..1d83fefbc89 100644 --- a/spec/components/auth/github_authenticator_spec.rb +++ b/spec/components/auth/github_authenticator_spec.rb @@ -193,8 +193,6 @@ describe Auth::GithubAuthenticator do let(:user_with_custom_avatar) { Fabricate(:user, user_avatar: user_avatar) } it 'does not enqueue a download_avatar_from_url job' do - Sidekiq::Testing.fake! - expect { authenticator.after_authenticate(auth_token_for(user_with_custom_avatar)) }.to_not change(job_klass.jobs, :size) @@ -203,8 +201,6 @@ describe Auth::GithubAuthenticator do context 'when user does not have a custom avatar' do it 'enqueues a download_avatar_from_url job' do - Sidekiq::Testing.fake! - expect { authenticator.after_authenticate(auth_token_for(user)) }.to change(job_klass.jobs, :size).by(1)