Skip to content

Commit fe7ede1

Browse files
committed
More expected exception updating
1 parent cc943c1 commit fe7ede1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

spec/octocatalog-diff/integration/preserve_environments_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@
261261
it 'should raise exception due to missing symlink request' do
262262
expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result)
263263
expect(@result.exception).to be_a_kind_of(Errno::ENOENT)
264-
expect(@result.exception.message).to match(%r{Catalog for 'from' \(origin/master\) failed.+ Errno::ENOENT})
265264
expect(@result.exception.message).to match(%r{Specified directory .+/preserve-environments/fluffy doesn't exist})
266265
end
267266
end

spec/octocatalog-diff/tests/catalog-util/fileresources_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def catalog_from_fixture(path)
182182
# Perform test
183183
expect do
184184
OctocatalogDiff::CatalogUtil::FileResources.convert_file_resources(obj)
185-
end.to raise_error(Errno::ENOENT, %r{Unable to resolve 'puppet:///modules/this/does/not/exist'})
185+
end.to raise_error(OctocatalogDiff::Errors::CatalogError, %r{Unable to resolve 'puppet:///modules/this/does/not/exist'})
186186
end
187187

188188
it 'should return original if compilation_dir is not a string' do

0 commit comments

Comments
 (0)