Skip to content

Commit

Permalink
fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Mar 28, 2024
1 parent 52971d6 commit 027d146
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ Style/HashConversion:

RSpec/VerifiedDoubleReference:
EnforcedStyle: string

RSpec/ExampleLength:
Max: 50
5 changes: 3 additions & 2 deletions spec/units/rabbit/daemon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
bunny_options: {
bar: 2,
log_level: "warn",
}
},
}
end

specify do
it "setups sneakers properly and runs daemon" do
expect(Sneakers).to receive(:configure).with(
connection: bunny_double,
env: "test",
Expand Down Expand Up @@ -58,6 +58,7 @@

expect(sneaker_logger_double).to receive(:level=).with("warn")
expect(runner_double).to receive(:run)

Rabbit::Daemon.run(logger: logger_double)
end
end
2 changes: 1 addition & 1 deletion spec/units/rabbit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
)
end

it "publishes" do # rubocop:disable RSpec/ExampleLength
it "publishes" do
if expect_to_use_job
log_line = 'test_group_id.test_project_id.some_exchange / some_queue / ' \
'{"foo"=>"bar"} / some_event / confirm: {"hello"=>"world"}'
Expand Down

0 comments on commit 027d146

Please sign in to comment.