Fixing the tests for Windows

This commit is contained in:
Marcin Grzejszczak
2016-10-10 14:52:14 +02:00
parent 118dd8e04f
commit f56eba4136

View File

@@ -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) {