summaryrefslogtreecommitdiff
path: root/spec/support/shared.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-02 15:11:12 +0000
committermo khan <mo.khan@gmail.com>2020-04-02 15:11:12 +0000
commit2d200e2bcecb91eadc5ee211f5bb65aafa645054 (patch)
tree9749333a7c8878b833b4642afe3071cf1c14012c /spec/support/shared.rb
parent43bcbbd04342faa497725c5b0be3c6d944d850da (diff)
parentbfd7459419921ff37ee500f0698862eea6788675 (diff)
Merge branch '10128-go-modules' into 'master'v3.5.0
Improve license detection in go modules projects See merge request gitlab-org/security-products/license-management!129
Diffstat (limited to 'spec/support/shared.rb')
-rw-r--r--spec/support/shared.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared.rb b/spec/support/shared.rb
index ba3d3cc..51b161a 100644
--- a/spec/support/shared.rb
+++ b/spec/support/shared.rb
@@ -11,7 +11,7 @@ RSpec.shared_examples "each report version" do |language, package_manager, branc
it 'matches the expected report' do
actual = runner.scan(env: { 'LM_REPORT_VERSION' => version })
- expect(JSON.pretty_generate(actual)).to eq(JSON.pretty_generate(expected_content))
+ expect(JSON.pretty_generate(actual.to_h)).to eq(JSON.pretty_generate(expected_content))
expect(actual).to match_schema(version: version)
end
end