Sha256: 6e4a4f496c3c147f17fb2ab030c6b02337438386768e6392a7ea3bfc3c9cbf1f
Contents?: true
Size: 323 Bytes
Versions: 6
Compression:
Stored size: 323 Bytes
Contents
RSpec.configure do |config| config.before(:each) do |example| if (sidekiq = example.metadata[:sidekiq]) sidekiq = :fake if sidekiq == true Sidekiq::Testing.send("#{sidekiq}!") end end config.after(:each) do |example| Sidekiq::Testing.disable! unless example.metadata[:sidekiq].nil? end end
Version data entries
6 entries across 6 versions & 1 rubygems