diff options
| -rw-r--r-- | spec/support/matchers/match_schema.rb | 2 | ||||
| -rw-r--r-- | spec/support/shared/with_scanner.rb | 2 |
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 |
