diff options
author | Gilbert Roulot <groulot@gitlab.com> | 2018-10-04 11:30:32 +0200 |
---|---|---|
committer | Gilbert Roulot <groulot@gitlab.com> | 2018-10-04 11:30:32 +0200 |
commit | 5e4eed69a0e76f9f2654c56178d04e124229c182 (patch) | |
tree | 10c593c66a69d9a252741d899c3758523dbbd6a6 | |
parent | 492fe79cf433d974475139189e9920c1f5bf08db (diff) | |
download | gitlab-ce-46050_add_new_ci_predefined_variables_for_gitlab_version.tar.gz |
Add EE and RC version parsing to Gitlab::VersionInfo tests.46050_add_new_ci_predefined_variables_for_gitlab_version
-rw-r--r-- | spec/lib/gitlab/version_info_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/lib/gitlab/version_info_spec.rb b/spec/lib/gitlab/version_info_spec.rb index c8a1e433d59..30035c79e58 100644 --- a/spec/lib/gitlab/version_info_spec.rb +++ b/spec/lib/gitlab/version_info_spec.rb @@ -57,6 +57,9 @@ describe 'Gitlab::VersionInfo' do context 'parse' do it { expect(Gitlab::VersionInfo.parse("1.0.0")).to eq(@v1_0_0) } it { expect(Gitlab::VersionInfo.parse("1.0.0.1")).to eq(@v1_0_0) } + it { expect(Gitlab::VersionInfo.parse("1.0.0-ee")).to eq(@v1_0_0) } + it { expect(Gitlab::VersionInfo.parse("1.0.0-rc1")).to eq(@v1_0_0) } + it { expect(Gitlab::VersionInfo.parse("1.0.0-rc1-ee")).to eq(@v1_0_0) } it { expect(Gitlab::VersionInfo.parse("git 1.0.0b1")).to eq(@v1_0_0) } it { expect(Gitlab::VersionInfo.parse("git 1.0b1")).not_to be_valid } end |