Skip to content

Commit 027d146

Browse files
committed
fix rubocop issues
1 parent 52971d6 commit 027d146

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ Style/HashConversion:
2323

2424
RSpec/VerifiedDoubleReference:
2525
EnforcedStyle: string
26+
27+
RSpec/ExampleLength:
28+
Max: 50

spec/units/rabbit/daemon_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
bunny_options: {
2727
bar: 2,
2828
log_level: "warn",
29-
}
29+
},
3030
}
3131
end
3232

33-
specify do
33+
it "setups sneakers properly and runs daemon" do
3434
expect(Sneakers).to receive(:configure).with(
3535
connection: bunny_double,
3636
env: "test",
@@ -58,6 +58,7 @@
5858

5959
expect(sneaker_logger_double).to receive(:level=).with("warn")
6060
expect(runner_double).to receive(:run)
61+
6162
Rabbit::Daemon.run(logger: logger_double)
6263
end
6364
end

spec/units/rabbit_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
)
5050
end
5151

52-
it "publishes" do # rubocop:disable RSpec/ExampleLength
52+
it "publishes" do
5353
if expect_to_use_job
5454
log_line = 'test_group_id.test_project_id.some_exchange / some_queue / ' \
5555
'{"foo"=>"bar"} / some_event / confirm: {"hello"=>"world"}'

0 commit comments

Comments
 (0)