summaryrefslogtreecommitdiff
path: root/spec/integration/java/gradle_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/java/gradle_spec.rb')
-rw-r--r--spec/integration/java/gradle_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/integration/java/gradle_spec.rb b/spec/integration/java/gradle_spec.rb
index d2ddaf1..25336c1 100644
--- a/spec/integration/java/gradle_spec.rb
+++ b/spec/integration/java/gradle_spec.rb
@@ -19,7 +19,7 @@ plugins {
runner.add_file('build.gradle', content)
report = runner.scan
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:licenses]).to be_empty
expect(report[:dependencies]).to be_empty
end
@@ -34,7 +34,7 @@ plugins {
end
it 'is able to detect licenses' do
- expect(result).to match_schema(version: '2.0')
+ expect(result).to match_schema
expect(result[:licenses]).not_to be_empty
[
@@ -61,7 +61,7 @@ plugins {
runner.mount(dir: fixture_file('java/gradle/offline-environment/'))
end
- specify { expect(subject).to match_schema(version: '2.0') }
+ specify { expect(subject).to match_schema }
specify do
expect(subject.dependency_names).to match_array([
@@ -102,7 +102,7 @@ plugins {
runner.add_file('build.gradle', fixture_file_content("java/11/build.gradle"))
end
- specify { expect(report).to match_schema(version: '2.0') }
+ specify { expect(report).to match_schema }
specify { expect { report }.to change { Dir.glob("#{runner.project_path}/build/reports/profile/profile-*.html").count }.from(0).to(1) }
specify { expect(report.dependency_names).to match_array(['postgresql']) }
specify { expect(report.licenses_for('postgresql')).to match_array(['BSD-2-Clause']) }
@@ -117,7 +117,7 @@ plugins {
it 'returns an empty report because the plugin we use does not work in this version of the gradle API' do
report = runner.scan(env: { 'LM_JAVA_VERSION' => '8' })
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:dependencies]).to be_empty
expect(report[:licenses]).to be_empty
end
@@ -133,7 +133,7 @@ plugins {
runner.add_file('settings.gradle.kts', 'rootProject.name = "example"')
end
- specify { expect(report).to match_schema(version: '2.0') }
+ specify { expect(report).to match_schema }
specify { expect(report.dependency_names).to match_array(['postgresql']) }
specify { expect(report.licenses_for('postgresql')).to match_array(['BSD-2-Clause']) }
end
@@ -153,7 +153,7 @@ plugins {
runner.add_file('settings.gradle', 'rootProject.name = "example"')
end
- specify { expect(report).to match_schema(version: '2.0') }
+ specify { expect(report).to match_schema }
specify { expect(report.dependency_names).to match_array(['postgresql']) }
specify { expect(report.licenses_for('postgresql')).to match_array(['BSD-2-Clause']) }
end