spec/pmd_spec.rb in danger-pmd-0.0.4 vs spec/pmd_spec.rb in danger-pmd-0.0.5

- old
+ new

@@ -42,9 +42,19 @@ custom_task = "pmdStagingDebug" @my_plugin.gradle_task = custom_task expect(@my_plugin.gradle_task).to eq(custom_task) end + it "Skip Gradle task" do + skip_gradle_task = true + @my_plugin.skip_gradle_task = skip_gradle_task + expect(@my_plugin.skip_gradle_task).to eq(skip_gradle_task) + end + + it "Check default skip Gradle task" do + expect(@my_plugin.skip_gradle_task).to eq(false) + end + it "Create files" do custom_report_path = "spec/fixtures/pmd_report.xml" @my_plugin.report_file = custom_report_path pmd_issues = @my_plugin.pmd_issues expect(pmd_issues).not_to be_nil