File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
spec/octocatalog-diff/tests/catalog-util Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 167
167
logs = @logger_str . string . split ( /\n / ) . compact . map { |x | OctocatalogDiff ::Spec . strip_log_message ( x ) }
168
168
expect ( logs ) . to include ( 'DEBUG - ENC override: foo = "bar"' )
169
169
end
170
+
171
+ it 'should not error if ENC regexp has ::s' do
172
+ options = {
173
+ enc_override : [ OctocatalogDiff ::API ::V1 ::Override . create_from_input ( '/parameters::o+/=(string)bar' ) ]
174
+ }
175
+ subject = described_class . allocate
176
+ subject . instance_variable_set ( '@options' , options )
177
+ subject . instance_variable_set ( '@content' , "---\n parameters:\n foo: baz\n fizz: buzz\n " )
178
+ subject . send ( :override_enc_parameters , @logger )
179
+ expect ( subject . instance_variable_get ( '@content' ) ) . to eq ( "---\n parameters:\n foo: baz\n fizz: buzz\n " )
180
+ logs = @logger_str . string . split ( /\n / ) . compact . map { |x | OctocatalogDiff ::Spec . strip_log_message ( x ) }
181
+ expect ( logs ) . not_to match ( /DEBUG - ENC override/ )
182
+ end
170
183
end
171
184
172
185
describe '#merge_enc_param' do
You can’t perform that action at this time.
0 commit comments