15 Commits

Author SHA1 Message Date
Mike McQuaid
5e6c40e28f Make versioned formulae regex more consistent.
Share the regex where possible and otherwise ensure they are identical.
2018-06-18 14:36:51 +01:00
Alyssa Ross
472d1a22c5
Fix comparison with Version::NULL on RHS
This was accounted for in Version::NULL.<=>, but not in Version#<=>,
so these could only be compared if Version::NULL was the left hand
side.

The check had to go above the check that `other` is a version because
`Version::NULL`'s anonymous class does not inherit from `Version`.
(The type check feels like it's probably a smell, but out of scope).
2018-05-26 14:45:53 +02:00
Markus Reiter
32d1f6db8b Fix described_class in custom matcher. 2018-03-27 11:05:57 +02:00
Mike McQuaid
5e1806e796 test: rubocop-rspec style auto-corrects.
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Markus Reiter
9bee9ca575 Use “squiggly” heredocs. 2017-10-18 14:39:09 +02:00
Kevin Abel
4f55565677 Add test for php version in URL middle 2017-10-03 23:39:14 -05:00
Naoto Kaneko
5fa4d60c7b Replace String#% with Kernel.#format 2017-09-22 17:53:48 +09:00
Naoto Kaneko
557105640b Add a failure message to be_detected_from matcher 2017-09-22 16:57:27 +09:00
JCount
a5fff4547f verion_spec: add test coverage for devel spec version style
also expand coverage for improved dash version style
2017-07-22 19:31:36 -04:00
JCount
0a5052141d Merge pull request #2827 from JCount/version-improve-url-only-version-parsing
version: improve url-only version parsing
2017-06-30 11:37:28 -04:00
JCount
d50312ae6b version_spec: add tests for char prefixed and w.x.y.z url-only styles 2017-06-30 10:53:24 -04:00
Ed Flanagan ed@flanagan.xyz
700b5e2738 Add PreToken composite 2017-06-27 03:17:23 -07:00
Reto Kromer
7e76740172 move before dash version style 2017-04-18 11:41:55 +02:00
Reto Kromer
0dc6871d22 add test 2017-04-17 18:11:11 +02:00
Markus Reiter
76acd1e6ee Convert Version test to spec. 2017-02-27 16:27:07 +01:00