summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/regex_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/regex_spec.rb')
-rw-r--r--spec/lib/gitlab/regex_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab/regex_spec.rb b/spec/lib/gitlab/regex_spec.rb
index 451526021c1..ebb37f45b95 100644
--- a/spec/lib/gitlab/regex_spec.rb
+++ b/spec/lib/gitlab/regex_spec.rb
@@ -248,6 +248,15 @@ RSpec.describe Gitlab::Regex do
it { is_expected.not_to match('!!()()') }
end
+ describe '.composer_dev_version_regex' do
+ subject { described_class.composer_dev_version_regex }
+
+ it { is_expected.to match('dev-master') }
+ it { is_expected.to match('1.x-dev') }
+ it { is_expected.not_to match('foobar') }
+ it { is_expected.not_to match('1.2.3') }
+ end
+
describe '.conan_recipe_component_regex' do
subject { described_class.conan_recipe_component_regex }