Skip to content

Commit 0d9e2be

Browse files
author
Kevin Paulisse
committed
Add test for no checking of references enabled
1 parent ed5454a commit 0d9e2be

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

spec/octocatalog-diff/integration/reference_validation_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,20 @@ def self.catalog_contains_resource(result, type, title)
263263
end
264264

265265
context 'with broken references, but checking not enabled' do
266+
before(:all) do
267+
@result = OctocatalogDiff::Spec.reference_validation_catalog_diff(
268+
'broken',
269+
'broken-2',
270+
%w()
271+
)
272+
end
273+
274+
it 'should succeed' do
275+
expect(@result.exitcode).to eq(2), OctocatalogDiff::Integration.format_exception(@result)
276+
end
277+
278+
it 'should not raise error' do
279+
expect(@result.exception).to be_nil
280+
end
266281
end
267282
end

0 commit comments

Comments
 (0)