Require Sidekiq::Testing in rails helper.

This commit is contained in:
Guo Xiang Tan 2017-03-29 11:10:25 +08:00
parent 86f11955cf
commit 7cf0f39066
5 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,6 @@
# encoding: UTF-8
require 'rails_helper'
require 'sidekiq/testing'
describe Topic do

View File

@ -1,4 +1,3 @@
require "sidekiq/testing"
require 'rails_helper'
require_dependency 'jobs/base'
@ -123,4 +122,3 @@ describe Jobs do
end
end

View File

@ -1,5 +1,4 @@
require "rails_helper"
require 'sidekiq/testing'
describe DiscourseSingleSignOn do
before do

View File

@ -1,5 +1,4 @@
require 'rails_helper'
require 'sidekiq/testing'
describe WebHook do
it { is_expected.to validate_presence_of :payload_url }

View File

@ -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.