Fixing the tests for Windows
This commit is contained in:
@@ -23,8 +23,9 @@ class ContractDownloaderSpec extends Specification {
|
||||
when:
|
||||
contractDownloader.unpackedDownloadedContracts(properties)
|
||||
then:
|
||||
|
||||
properties.includedContracts == fileSeparated('^/some/path/to/somewhere/a/b/c/d.*$')
|
||||
properties.includedContracts.startsWith('^')
|
||||
properties.includedContracts.endsWith('$')
|
||||
properties.includedContracts.contains(fileSeparated('/some/path/to/somewhere/a/b/c/d.*'))
|
||||
}
|
||||
|
||||
def 'should set inclusion pattern on config when path pattern was explicitly provided without a separator at the beginning'() {
|
||||
@@ -38,7 +39,9 @@ class ContractDownloaderSpec extends Specification {
|
||||
when:
|
||||
contractDownloader.unpackedDownloadedContracts(properties)
|
||||
then:
|
||||
properties.includedContracts == fileSeparated('^/some/path/to/somewhere/a/b/c/d.*$')
|
||||
properties.includedContracts.startsWith('^')
|
||||
properties.includedContracts.endsWith('$')
|
||||
properties.includedContracts.contains(fileSeparated('/some/path/to/somewhere/a/b/c/d.*'))
|
||||
}
|
||||
|
||||
private static String fileSeparated(String string) {
|
||||
|
||||
Reference in New Issue
Block a user