mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
test: add more ruby replace tests
This commit is contained in:
parent
8b83450997
commit
65190695db
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,8 @@ describe('semverRuby', () => {
|
||||||
],
|
],
|
||||||
['~> 6.0.0', '~> 5.2.0', 'replace', '5.2.4.1', '6.0.2.1'],
|
['~> 6.0.0', '~> 5.2.0', 'replace', '5.2.4.1', '6.0.2.1'],
|
||||||
['~> 5.0, < 6', '~> 4.0, < 5', 'replace', '4.7.5', '5.0.0'],
|
['~> 5.0, < 6', '~> 4.0, < 5', 'replace', '4.7.5', '5.0.0'],
|
||||||
|
['~> 5.0, < 6', '~> 4.0, < 5', 'replace', '4.7.5', '5.0.1'],
|
||||||
|
['~> 5.1, < 6', '~> 4.0, < 5', 'replace', '4.7.5', '5.1.0'], // ideally this should be ~> 5.0
|
||||||
].forEach(
|
].forEach(
|
||||||
([expected, currentValue, rangeStrategy, fromVersion, toVersion]) => {
|
([expected, currentValue, rangeStrategy, fromVersion, toVersion]) => {
|
||||||
expect(
|
expect(
|
||||||
|
|
Loading…
Reference in a new issue