From bfd7459419921ff37ee500f0698862eea6788675 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 30 Mar 2020 23:05:42 -0600 Subject: Reproduce failure with go modules scanning * Install sudo for existing configurations * Detect dependencies in a gomodules project * Add CHANGELOG entry and bump version * Symlink to $GOPATH for non go modules projects * Remove problematic go get setup --- spec/support/shared.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support/shared.rb') 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 -- cgit v1.2.3