From 72bb7126f7e391b92ed94d89fddb945477c836ed Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 16 Sep 2020 17:44:37 -0600 Subject: chore: fix linter error --- spec/support/matchers/match_schema.rb | 2 +- spec/support/shared/with_scanner.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3