Skip to content

Commit

Permalink
Improve test assertion
Browse files Browse the repository at this point in the history
As noted in code review: gradle#5726 (comment)
  • Loading branch information
Daniel Lacasse committed Jul 3, 2018
1 parent 5a776b3 commit 9260880
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,14 @@ task verify {
sourceSets {
main {
groovy.outputDir = new File(buildDir,'bin')
groovy.outputDir = file("$buildDir/bin")
}
}
task assertDirectoriesAreEquals {
doLast {
assert sourceSets.main.groovy.outputDir == compileGroovy.destinationDir
assert sourceSets.main.groovy.outputDir.absolutePath == "$buildDir/bin"
}
}
'''
Expand Down

0 comments on commit 9260880

Please sign in to comment.