Skip to content

Commit 6073ebe

Browse files
committed
Update test, since we don't wrap hiera setup errors as catalog errors
1 parent a73ee8e commit 6073ebe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/octocatalog-diff/tests/util/catalogs_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def valid?
198198
logger, _logger_string = OctocatalogDiff::Spec.setup_logger
199199
testobj = OctocatalogDiff::Util::Catalogs.new(options, logger)
200200
re = %r{ENC.*/asdkfjlfjkalksdfads wasn't found}
201-
expect { testobj.catalogs }.to raise_error(OctocatalogDiff::Errors::CatalogError, re)
201+
expect { testobj.catalogs }.to raise_error(Errno::ENOENT, re)
202202
end
203203
end
204204
end
@@ -211,7 +211,7 @@ def valid?
211211
logger, _logger_string = OctocatalogDiff::Spec.setup_logger
212212
testobj = OctocatalogDiff::Util::Catalogs.new(options, logger)
213213
re = %r{hiera.yaml.*/asdkfjlfjkalksdfads\) wasn't found}
214-
expect { testobj.catalogs }.to raise_error(OctocatalogDiff::Errors::CatalogError, re)
214+
expect { testobj.catalogs }.to raise_error(Errno::ENOENT, re)
215215
end
216216
end
217217
end

0 commit comments

Comments
 (0)