lib/sidekiq_unique_jobs/rspec/matchers.rb in sidekiq-unique-jobs-7.0.0.beta10 vs lib/sidekiq_unique_jobs/rspec/matchers.rb in sidekiq-unique-jobs-7.0.0.beta11
- old
+ new
@@ -15,10 +15,12 @@
module Matchers
end
end
end
-require_relative "matchers/have_valid_sidekiq_options"
+if defined?(RSpec)
+ require_relative "matchers/have_valid_sidekiq_options"
-RSpec.configure do |config|
- config.include SidekiqUniqueJobs::RSpec::Matchers
+ RSpec.configure do |config|
+ config.include SidekiqUniqueJobs::RSpec::Matchers
+ end
end