diff options
Diffstat (limited to 'spec/integration')
| -rw-r--r-- | spec/integration/gemnasium_maven_spec.rb | 2 | ||||
| -rw-r--r-- | spec/integration/spotbugs_spec.rb | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/integration/gemnasium_maven_spec.rb b/spec/integration/gemnasium_maven_spec.rb index 4372110..2b27221 100644 --- a/spec/integration/gemnasium_maven_spec.rb +++ b/spec/integration/gemnasium_maven_spec.rb @@ -8,6 +8,8 @@ RSpec.describe 'gemnasium-maven' do let(:project_fixture) { 'java/maven/custom-tls' } let(:env) { { 'ADDITIONAL_CA_CERT_BUNDLE' => X509.self_signed.to_pem, 'DS_JAVA_VERSION' => java_version } } + specify { expect(subject).to match_schema(:dependency_scanning) } + specify do files = subject.to_h['dependency_files'] expect(files.count).to be(1) diff --git a/spec/integration/spotbugs_spec.rb b/spec/integration/spotbugs_spec.rb index fa12203..6ff9395 100644 --- a/spec/integration/spotbugs_spec.rb +++ b/spec/integration/spotbugs_spec.rb @@ -1,8 +1,9 @@ # frozen_string_literal: true + RSpec.describe 'spotbugs' do let(:project_fixture) { 'java/maven/custom-tls' } let(:scanner) { 'spotbugs' } - specify { expect(subject).not_to be_nil } + specify { expect(subject).to match_schema(:sast) } specify { expect(subject['version']).to eql('3.0') } end |
