diff options
| author | mo khan <mo.khan@gmail.com> | 2020-09-16 17:44:37 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-09-16 17:44:37 -0600 |
| commit | 72bb7126f7e391b92ed94d89fddb945477c836ed (patch) | |
| tree | acd6e58c5b949d48d06d6975304188b4d4457dd8 /spec/support/matchers/match_schema.rb | |
| parent | 2cfabe4424e5c13390f91c8708a43f57641b51f1 (diff) | |
chore: fix linter error
Diffstat (limited to 'spec/support/matchers/match_schema.rb')
| -rw-r--r-- | spec/support/matchers/match_schema.rb | 2 |
1 files changed, 1 insertions, 1 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 |
