diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-29 15:05:06 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-01-29 15:05:06 -0700 |
| commit | 9912d7b2945ee27934674d4e31af731bc64fef7d (patch) | |
| tree | d542afe4b767801d9fedc8bb6b08004d2b18444f | |
| parent | 7ff4e9e3ead7d53ac687f2b30f4886358574465b (diff) | |
Add integration test to reproduce failure
| -rw-r--r-- | spec/integration/java/gradle_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/integration/java/gradle_spec.rb b/spec/integration/java/gradle_spec.rb new file mode 100644 index 0000000..55bde8d --- /dev/null +++ b/spec/integration/java/gradle_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper' + +RSpec.describe "gradle" do + context "when running a default gradle build" do + it 'installs the required ruby and produces a valid report' 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" +} + GRADLE + runner.add_file('build.gradle', content) + + report = runner.scan + expect(report).to match_schema(version: '2.0') + expect(report[:licenses]).to be_empty + expect(report[:dependencies]).to be_empty + end + end +end |
