summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-09-16 17:44:37 -0600
committermo khan <mo.khan@gmail.com>2020-09-16 17:44:37 -0600
commit72bb7126f7e391b92ed94d89fddb945477c836ed (patch)
treeacd6e58c5b949d48d06d6975304188b4d4457dd8 /spec/support
parent2cfabe4424e5c13390f91c8708a43f57641b51f1 (diff)
chore: fix linter error
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/matchers/match_schema.rb2
-rw-r--r--spec/support/shared/with_scanner.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/matchers/match_schema.rb b/spec/support/matchers/match_schema.rb
index eef6106..5abac67 100644
--- a/spec/support/matchers/match_schema.rb
+++ b/spec/support/matchers/match_schema.rb
@@ -2,7 +2,7 @@
RSpec::Matchers.define :match_schema do |report_type|
def schema_for(type)
- relative_path = "spec/schemas/dist/#{type.gsub('_', '-')}-report-format.json"
+ relative_path = "spec/schemas/dist/#{type.tr('_', '-')}-report-format.json"
json = JSON.parse(Pathname.pwd.join(relative_path).read)
json.delete('$schema')
json
diff --git a/spec/support/shared/with_scanner.rb b/spec/support/shared/with_scanner.rb
index fe88496..6817515 100644
--- a/spec/support/shared/with_scanner.rb
+++ b/spec/support/shared/with_scanner.rb
@@ -14,7 +14,7 @@ RSpec.shared_context 'with scanner' do
around do |example|
if project_fixture
- project.mount(dir: fixture_file(project_fixture))
+ project.mount(dir: fixture_file(project_fixture))
else
project.clone(git_url, branch: git_branch.to_s)
end