Merge pull request #118 from adam-wojszczyk/issues/115-predefined-regex

[#115] Add localhost assertions to regexPatternsSpec
This commit is contained in:
Olga Maciaszek-Sharma
2015-08-10 12:42:26 +02:00

View File

@@ -24,11 +24,13 @@ class RegexPatternsSpec extends Specification {
expect:
shouldMatch == Pattern.compile(regexPatterns.hostname()).matcher(textToMatch).matches()
where:
textToMatch || shouldMatch
'https://asd.com' || true
'https://asd.com:8080' || true
'https://asd.com/asd' || false
'asd.com' || false
textToMatch || shouldMatch
'https://asd.com' || true
'https://asd.com:8080' || true
'https://localhost' || true
'https://localhost:8080' || true
'https://asd.com/asd' || false
'asd.com' || false
}
@Unroll