Skip to content

Commit 6758fb0

Browse files
committed
Fix Rubocop violations
1 parent ec87c93 commit 6758fb0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require:
1+
plugins:
22
- rubocop-rake
33
- rubocop-rspec
44

lib/bashcov/runner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def run
3434
options[fd] = fd # bind FDs to the child process
3535

3636
if Bashcov.options.mute
37-
options[:out] = "/dev/null"
38-
options[:err] = "/dev/null"
37+
options[:out] = File::NULL
38+
options[:err] = File::NULL
3939
end
4040

4141
env =

spec/bashcov/runner_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
it "omits files matching one or more SimpleCov filters from the results hash" do
232232
runner.run
233233
result = runner.result
234-
expect(result.keys).to match_array((expected_coverage.keys - expected_omitted.values.flatten))
234+
expect(result.keys).to match_array(expected_coverage.keys - expected_omitted.values.flatten)
235235
end
236236
end
237237
end

0 commit comments

Comments
 (0)