Skip to content

Commit d79cb80

Browse files
committed
fix rubocop issues
1 parent 66e6e0b commit d79cb80

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
source "https://rubygems.org"
44

5+
# rubocop:disable Bundler/DuplicatedGem
56
case ENV["SIMPLECOV_HTML_MODE"]
67
when "local"
78
# Use local copy of simplecov-html in development when checked out
8-
gem "simplecov-html", path: File.dirname(__FILE__) + "/../simplecov-html"
9+
gem "simplecov-html", path: "#{File.dirname(__FILE__)}/../simplecov-html"
910
when "github"
1011
# Use development version of html formatter from github
1112
gem "simplecov-html", github: "simplecov-ruby/simplecov-html"
1213
end
14+
# rubocop:enable Bundler/DuplicatedGem
1315

1416
group :development do
1517
gem "apparition", "~> 0.6.0"

spec/result_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
]
246246
}
247247
},
248-
"timestamp" => be_a(Integer),
248+
"timestamp" => be_a(Integer)
249249
}
250250
)
251251
end
@@ -310,7 +310,7 @@
310310

311311
context "old style line coverage format" do
312312
let(:dumped_result) do
313-
{ source_fixture("sample.rb") => [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil] }
313+
{source_fixture("sample.rb") => [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil]}
314314
end
315315

316316
it "parses that properly" do
@@ -320,7 +320,7 @@
320320
expect(result.first.original_result.size).to eq(1)
321321

322322
expect(result.first.original_result.values.last).to eq(
323-
lines: [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil],
323+
lines: [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil]
324324
)
325325
end
326326
end

0 commit comments

Comments
 (0)