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.rb28
1 files changed, 15 insertions, 13 deletions
diff --git a/spec/integration/java/gradle_spec.rb b/spec/integration/java/gradle_spec.rb
index 1b566bb..fcc4347 100644
--- a/spec/integration/java/gradle_spec.rb
+++ b/spec/integration/java/gradle_spec.rb
@@ -1,20 +1,22 @@
+# frozen_string_literal: true
+
require 'spec_helper'
-RSpec.describe "gradle" do
- include_examples "each report version", "java", "gradle"
+RSpec.describe 'gradle' do
+ include_examples 'each report version', 'java', 'gradle'
- context "when running a default gradle build" do
+ context 'when running a default gradle build' do
it 'scans a gradle project' do
content = <<~GRADLE
-/*
- * This file was generated by the Gradle 'init' task.
- *
- * This is a general purpose Gradle build.
- * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
- */
-plugins {
- id "com.github.hierynomus.license" version "0.15.0"
-}
+ /*
+ * This file was generated by the Gradle 'init' task.
+ *
+ * This is a general purpose Gradle build.
+ * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
+ */
+ plugins {
+ id "com.github.hierynomus.license" version "0.15.0"
+ }
GRADLE
runner.add_file('build.gradle', content)
@@ -59,7 +61,7 @@ plugins {
].each do |gradle_version|
%w[8 11].each do |java_version|
context "when scanning a gradle (v#{gradle_version}) project that uses a kotlin build script" do
- let(:build_file_content) { fixture_file_content("java/build.gradle.kts") }
+ let(:build_file_content) { fixture_file_content('java/build.gradle.kts') }
it 'scans a gradle project' do
runner.add_file('build.gradle.kts', build_file_content)