summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-02-26 15:24:21 -0700
committermo khan <mo.khan@gmail.com>2020-02-26 15:24:21 -0700
commit856c2e8429696a94b116c28e5c20687f71da197e (patch)
tree469e433d6d690ba17c3333e02a8579801fb93cd8 /spec/integration
parent7ce136081df3b6d60d010b9fc66f313ea87f992f (diff)
Extract fixture file helper
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/java/gradle_spec.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/spec/integration/java/gradle_spec.rb b/spec/integration/java/gradle_spec.rb
index f9e7bcc..ddde21c 100644
--- a/spec/integration/java/gradle_spec.rb
+++ b/spec/integration/java/gradle_spec.rb
@@ -58,21 +58,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) do
- <<~KOTLIN
-plugins {
- `java-library`
-}
-repositories {
- jcenter()
-}
-dependencies {
- api("org.apache.commons:commons-math3:3.6.1")
- implementation("com.google.guava:guava:28.1-jre")
- testImplementation("junit:junit:4.12")
-}
- KOTLIN
- end
+ let(:build_file_content) { fixture_file_content("build.gradle.kts") }
it 'scans a gradle project' do
runner.add_file('build.gradle.kts', build_file_content)