From 403678e00406edc8094f087ec70e00aa29e49bef Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 8 Apr 2020 12:09:42 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/models/concerns/ci/maskable_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'spec/models/concerns') diff --git a/spec/models/concerns/ci/maskable_spec.rb b/spec/models/concerns/ci/maskable_spec.rb index 22ffb294819..01861b39165 100644 --- a/spec/models/concerns/ci/maskable_spec.rb +++ b/spec/models/concerns/ci/maskable_spec.rb @@ -61,8 +61,12 @@ describe Ci::Maskable do expect(subject.match?(string)).to eq(false) end + it 'does not match strings using unsupported characters' do + expect(subject.match?('HelloWorld%#^')).to eq(false) + end + it 'matches valid strings' do - expect(subject.match?('helloworld')).to eq(true) + expect(subject.match?('Hello+World_123/@:-.')).to eq(true) end end -- cgit v1.2.1