summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-04 12:30:59 -0700
committermo khan <mo.khan@gmail.com>2020-03-04 12:30:59 -0700
commit587b576e456ba7a3eabee15f01cc16d1bf2422b9 (patch)
treefb2343e776e74201f2d54e95faf7ad8a02207e10 /spec/support
parent1891d63cc24ef1713a501acfaace43d2e0ae594e (diff)
Check report to ensure it matches the schema
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/shared.rb b/spec/support/shared.rb
index 92d4531..66d4492 100644
--- a/spec/support/shared.rb
+++ b/spec/support/shared.rb
@@ -6,7 +6,8 @@ RSpec.shared_examples "each report version" do |language, package_manager, branc
it 'matches the expected report' do
runner.clone(url, branch: branch)
report = runner.scan(env: { 'LM_REPORT_VERSION' => version })
- #expect(report).to match_schema(version: version)
+
+ expect(report).to match_schema(version: version)
expected = JSON.parse(fixture_file_content("expected/#{language}/#{package_manager}/v#{version}.json"))
expect(report).to eql(expected)
end