summaryrefslogtreecommitdiff
path: root/spec/support/matchers
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/match_schema.rb2
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