Skip to content

Commit fed0ad3

Browse files
authored
chore: clean up spacing and linebreak (#259)
1 parent d6e2161 commit fed0ad3

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

lib/rspec/sidekiq/batch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def total
9797
if mocked_with_mocha?
9898
Sidekiq::Batch.stubs(:new) { RSpec::Sidekiq::NullBatch.new }
9999
else
100-
allow(Sidekiq::Batch).to receive(:new) { RSpec::Sidekiq::NullBatch.new }
101-
allow(Sidekiq::Batch::Status).to receive(:new) { RSpec::Sidekiq::NullStatus.new }
100+
allow(Sidekiq::Batch).to receive(:new) { RSpec::Sidekiq::NullBatch.new }
101+
allow(Sidekiq::Batch::Status).to receive(:new) { RSpec::Sidekiq::NullStatus.new }
102102
end
103103
end
104104
end

lib/rspec/sidekiq/matchers/be_expired_in.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ def matches?(job)
3232
end
3333
end
3434
end
35-
end
35+
end

lib/rspec/sidekiq/matchers/be_unique.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def description
2525

2626
def failure_message
2727
if !interval_matches? && @expected_interval
28-
"expected #{@klass} to be unique for #{@expected_interval} seconds, "\
28+
"expected #{@klass} to be unique for #{@expected_interval} seconds, " \
2929
"but its interval was #{actual_interval} seconds"
3030
elsif !expiration_matches?
31-
"expected #{@klass} to be unique until #{@expected_expiration}, "\
31+
"expected #{@klass} to be unique until #{@expected_expiration}, " \
3232
"but its unique_until was #{actual_expiration || 'not specified'}"
3333
else
3434
"expected #{@klass} to be unique in the queue"
@@ -60,7 +60,7 @@ def interval_matches?
6060
end
6161

6262
def expiration_matches?
63-
@expected_expiration.nil? || actual_expiration == @expected_expiration
63+
@expected_expiration.nil? || actual_expiration == @expected_expiration
6464
end
6565

6666
def failure_message_when_negated

spec/rspec/sidekiq/batch_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Status
2525
end
2626

2727
describe 'NullStatus' do
28-
let(:batch) { Sidekiq::Batch.new }
28+
let(:batch) { Sidekiq::Batch.new }
2929

3030
subject { batch.status }
3131

spec/spec_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
ActiveJob::Base.queue_adapter = :sidekiq
2929
ActiveJob::Base.logger.level = :warn
3030

31-
3231
if config.sidekiq_gte_5 && !config.sidekiq_gte_7
3332
require "active_record"
3433
ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base)

spec/support/test_action_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
class TestActionMailer < ActionMailer::Base
4-
def testmail(resource = nil)
4+
def testmail(resource = nil)
55
@resource = resource
66
mail(to: '[email protected]', subject: 'testmail')
77
end

0 commit comments

Comments
 (0)