File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
core-plugin/src/integTest/groovy/com/github/jrubygradle/core Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import org.junit.Rule
6
6
import org.junit.rules.TemporaryFolder
7
7
import spock.lang.Specification
8
8
9
+ import java.util.regex.Pattern
10
+
9
11
10
12
class IvyXmlProxyServerIntegrationSpec extends Specification {
11
13
@@ -133,6 +135,15 @@ class IvyXmlProxyServerIntegrationSpec extends Specification {
133
135
.build()
134
136
135
137
then :
136
- new File (projectDir,' build/something/asciidoctor-2.0.9.gem' ). exists()
138
+ findFiles ~/ ^asciidoctor-2.*gem$/
139
+ }
140
+
141
+ List<File > findFiles (Pattern pat ) {
142
+ new File (projectDir,' build/something' ). listFiles( new FilenameFilter () {
143
+ @Override
144
+ boolean accept (File dir , String name ) {
145
+ name =~ pat
146
+ }
147
+ }) as List<File >
137
148
}
138
149
}
You can’t perform that action at this time.
0 commit comments