Improves the version comparison

This commit is contained in:
erwanlr
2014-07-30 12:11:04 +01:00
parent 12d275c26b
commit 1e6b5a1e4d
2 changed files with 14 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ describe 'VersionCompare' do
@version1 = '0.4.2b'
@version2 = '2.3.3'
end
it 'returns true' do
@version1 = '.47'
@version2 = '.50.3'
end
end
context 'version checked is older' do
@@ -60,6 +65,11 @@ describe 'VersionCompare' do
@version1 = '1.6.3.7.3.4'
@version2 = '1.2.4.567.679.8.e'
end
it 'returns false' do
@version1 = '.47'
@version2 = '.46.3'
end
end
context 'version checked is the same' do