mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
Avoid name clash in simplecov task
A variable and a method were called the same. Also made method calls more obvious with parenthesis.
This commit is contained in:
@@ -7,12 +7,11 @@ namespace :simplecov do
|
||||
require "simplecov"
|
||||
|
||||
path_to_results = args[:path_to_results].presence || "tmp/simplecov"
|
||||
coverage_dir = args[:coverage_dir].presence || "coverage"
|
||||
output_path = args[:coverage_dir].presence || "coverage"
|
||||
|
||||
SimpleCov.collate Dir[File.join(path_to_results, "**", ".resultset.json")], "rails" do
|
||||
formatter SimpleCov::Formatter::HTMLFormatter
|
||||
|
||||
coverage_dir coverage_dir
|
||||
formatter(SimpleCov::Formatter::HTMLFormatter)
|
||||
coverage_dir(output_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user