Skip to content

Commit

Permalink
Workaround for spockframework/spock#475
Browse files Browse the repository at this point in the history
  • Loading branch information
big-guy committed Dec 4, 2018
1 parent d137b67 commit e76905e
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -46,17 +46,16 @@ class DefaultTestClassScannerTest extends Specification {
then:
1 * detector.startDetection(processor)
then:
1 * detector.processTestClass({ it.file.is(class1.file) && it.relativePath.is(class1.relativePath) })
then:
1 * detector.processTestClass({ it.file.is(class2.file) && it.relativePath.is(class2.relativePath) })
then:
1 * files.visit(_) >> { args ->
FileVisitor visitor = args[0]
assert visitor
visitor.visitFile(class1)
visitor.visitFile(class2)
}
then:
1 * detector.processTestClass({ it.file.is(class1.file) && it.relativePath.is(class1.relativePath) })
then:
1 * detector.processTestClass({ it.file.is(class2.file) && it.relativePath.is(class2.relativePath) })

0 * _._
}

Expand Down

0 comments on commit e76905e

Please sign in to comment.