Merge pull request #8858 from Razer6/update-version-sorter
Update version sorter to 2.0.0, fixes #8572
This commit is contained in:
commit
66a82fd8da
2 changed files with 5 additions and 3 deletions
|
@ -617,7 +617,7 @@ GEM
|
|||
raindrops (~> 0.7)
|
||||
unicorn-worker-killer (0.4.2)
|
||||
unicorn (~> 4)
|
||||
version_sorter (1.1.0)
|
||||
version_sorter (2.0.0)
|
||||
virtus (1.0.1)
|
||||
axiom-types (~> 0.0.5)
|
||||
coercible (~> 1.0)
|
||||
|
|
|
@ -192,10 +192,12 @@ describe ApplicationHelper do
|
|||
it 'sorts tags in a natural order' do
|
||||
# Stub repository.tag_names to make sure we get some valid testing data
|
||||
expect(@project.repository).to receive(:tag_names).
|
||||
and_return(['v1.0.9', 'v1.0.10', 'v2.0', 'v3.1.4.2', 'v1.0.9a'])
|
||||
and_return(['v1.0.9', 'v1.0.10', 'v2.0', 'v3.1.4.2', 'v2.0rc1¿',
|
||||
'v1.0.9a', 'v2.0-rc1', 'v2.0rc2'])
|
||||
|
||||
expect(options[1][1]).
|
||||
to eq(['v3.1.4.2', 'v2.0', 'v1.0.10', 'v1.0.9a', 'v1.0.9'])
|
||||
to eq(['v3.1.4.2', 'v2.0', 'v2.0rc2', 'v2.0rc1¿', 'v2.0-rc1', 'v1.0.10',
|
||||
'v1.0.9', 'v1.0.9a'])
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue