diff options
Diffstat (limited to 'spec/helpers/ci')
-rw-r--r-- | spec/helpers/ci/variables_helper_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/helpers/ci/variables_helper_spec.rb b/spec/helpers/ci/variables_helper_spec.rb new file mode 100644 index 00000000000..d032e7f9087 --- /dev/null +++ b/spec/helpers/ci/variables_helper_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Ci::VariablesHelper, feature_category: :pipeline_authoring do + describe '#ci_variable_maskable_raw_regex' do + it 'converts to a javascript regex' do + expect(helper.ci_variable_maskable_raw_regex).to eq("^\\S{8,}$") + end + end +end |