We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e295a commit b301fbdCopy full SHA for b301fbd
test/dependencies_test.rb
@@ -5,8 +5,9 @@ class DependenciesTest < ActiveSupport::TestCase
5
IGNORED_VULNERABILITIES = ['CVE-2015-9284'].freeze
6
7
test 'for gem vulnerabilities' do
8
- Bundler::Audit::Database.update!(quiet: true)
9
- vulnerabilities = Bundler::Audit::Scanner.new.scan.to_a
+ scanner = Bundler::Audit::Scanner.new
+ scanner.database.update!(quiet: true)
10
+ vulnerabilities = scanner.scan.to_a
11
12
ignored_vulnerabilities, reported_vulnerabilities = vulnerabilities.partition { |r| r.respond_to?(:advisory) && IGNORED_VULNERABILITIES.include?(r.advisory.id) }
13
skip "Ignored advisories: #{vulnerability_string(ignored_vulnerabilities)}" if ignored_vulnerabilities.any? && reported_vulnerabilities.none?
0 commit comments