diff --git a/spec/integration/topic_auto_close_spec.rb b/spec/integration/topic_auto_close_spec.rb index c69d7108328..c57c505c658 100644 --- a/spec/integration/topic_auto_close_spec.rb +++ b/spec/integration/topic_auto_close_spec.rb @@ -1,7 +1,6 @@ # encoding: UTF-8 require 'rails_helper' -require 'sidekiq/testing' describe Topic do diff --git a/spec/jobs/jobs_spec.rb b/spec/jobs/jobs_spec.rb index 64de988b713..a5e6203ac35 100644 --- a/spec/jobs/jobs_spec.rb +++ b/spec/jobs/jobs_spec.rb @@ -1,4 +1,3 @@ -require "sidekiq/testing" require 'rails_helper' require_dependency 'jobs/base' @@ -123,4 +122,3 @@ describe Jobs do end end - diff --git a/spec/models/discourse_single_sign_on_spec.rb b/spec/models/discourse_single_sign_on_spec.rb index 534cfb857fa..fedab67aba5 100644 --- a/spec/models/discourse_single_sign_on_spec.rb +++ b/spec/models/discourse_single_sign_on_spec.rb @@ -1,5 +1,4 @@ require "rails_helper" -require 'sidekiq/testing' describe DiscourseSingleSignOn do before do diff --git a/spec/models/web_hook_spec.rb b/spec/models/web_hook_spec.rb index f71ac30e11d..d65641ea7ec 100644 --- a/spec/models/web_hook_spec.rb +++ b/spec/models/web_hook_spec.rb @@ -1,5 +1,4 @@ require 'rails_helper' -require 'sidekiq/testing' describe WebHook do it { is_expected.to validate_presence_of :payload_url } diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index d6a66b9ee70..cc2ac9b91be 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -25,6 +25,7 @@ Spork.prefork do require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'shoulda' + require 'sidekiq/testing' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories.