2023-04-23 21:23:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-06-20 00:43:36 +05:30
|
|
|
RSpec.describe Ci::VariablesHelper, feature_category: :secrets_management do
|
2023-04-23 21:23:45 +05:30
|
|
|
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
|