spec/loga/sidekiq_spec.rb in loga-2.8.0 vs spec/loga/sidekiq_spec.rb in loga-2.8.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'spec_helper'
RSpec.describe Loga::Sidekiq do
describe '.configure_logging' do
context 'when sidekiq is defined' do
@@ -30,12 +32,12 @@
m = ENV['BUNDLE_GEMFILE'].match(/sidekiq(?<version>\d+)/)
case m['version']
when '51'
- expect(::Sidekiq.options[:job_logger]).to eq(Loga::Sidekiq5::JobLogger)
+ expect(Sidekiq.options[:job_logger]).to eq(Loga::Sidekiq5::JobLogger)
when '6'
- expect(::Sidekiq.options[:job_logger]).to eq(Loga::Sidekiq6::JobLogger)
+ expect(Sidekiq.options[:job_logger]).to eq(Loga::Sidekiq6::JobLogger)
end
end
end
shared_examples 'a blank change' do