Permalink
Browse files

Updated test that was failing locally

Tweaked the assertions so that they are more resilient
  • Loading branch information...
mockitoguy committed Dec 2, 2017
1 parent 3da9b37 commit 3039fe3aacda06b42786fe4af15210d8b9f10075
@@ -17,16 +17,16 @@ class TestDownstreamPluginTest extends PluginSpecification {
def "should find log files for uploadGists in log directory"() {
given:
project.setBuildDir(tmp.root)
def aLog = tmp.newFile("a.log")
def bLog = tmp.newFile("b.log")
tmp.newFile("a.log")
tmp.newFile("b.log")
tmp.newFile("c.txt")
when:
project.plugins.apply(TestDownstreamPlugin)
then:
UploadGistsTask uploadGists = project.tasks.uploadGists
uploadGists.filesToUpload.getFiles() == [aLog, bLog].toSet()
uploadGists.filesToUpload*.name.toString() == "[a.log, b.log]"
project.tasks.testDownstream.uploadGistsTask == uploadGists
}

0 comments on commit 3039fe3

Please sign in to comment.