Skip to content

Commit d701393

Browse files
committed
Auto-correct new Rubocop offenses
1 parent 0319f68 commit d701393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/simplecov-rspec_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
let(:simplecov_module) { double('SimpleCov') }
140140

141141
it 'should call SimpleCov.start' do
142-
subject = described_class.new(simplecov_module: simplecov_module)
142+
subject = described_class.new(simplecov_module:)
143143
expected_hook_proc = subject.send(:at_exit_hook).to_proc
144144
expect(simplecov_module).to receive(:at_exit) do |&block|
145145
# Verify that the block passed to #at_exit is equivalent to the expected hook proc
@@ -153,7 +153,7 @@
153153
context 'when a start_config_block is set' do
154154
it 'should call SimpleCov.start with that block' do
155155
start_config_block = proc {}
156-
subject = described_class.new(simplecov_module: simplecov_module, &start_config_block)
156+
subject = described_class.new(simplecov_module:, &start_config_block)
157157
allow(simplecov_module).to receive(:at_exit)
158158
expect(simplecov_module).to receive(:start) do |&block|
159159
expect(block.binding.receiver).to eq(start_config_block.binding.receiver)

0 commit comments

Comments
 (0)