summaryrefslogtreecommitdiff
path: root/spec/support/shared.rb
diff options
context:
space:
mode:
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