File tree Expand file tree Collapse file tree
spec/octocatalog-diff/integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494
9595 it 'should exit with error status due modules in production environment not being found' do
9696 expect ( @result . exitcode ) . to eq ( -1 ) , OctocatalogDiff ::Integration . format_exception ( @result )
97- expect ( @result . exception ) . to be_a_kind_of ( OctocatalogDiff :: Errors :: CatalogError )
98- expect ( @result . exception . message ) . to match ( /Errno::ENOENT: No such file or directory - Environment directory/ )
97+ expect ( @result . exception ) . to be_a_kind_of ( Errno :: ENOENT )
98+ expect ( @result . exception . message ) . to match ( /No such file or directory - Environment directory/ )
9999 end
100100 end
101101
117117
118118 it 'should error on missing environment' do
119119 expect ( @result . exitcode ) . to eq ( -1 ) , OctocatalogDiff ::Integration . format_exception ( @result )
120- expect ( @result . exception ) . to be_a_kind_of ( OctocatalogDiff :: Errors :: CatalogError )
120+ expect ( @result . exception ) . to be_a_kind_of ( Errno :: ENOENT )
121121 expect ( @result . exception . message ) . to match ( %r{Environment directory .+/environments/fluffy does not exist} )
122122 end
123123 end
260260
261261 it 'should raise exception due to missing symlink request' do
262262 expect ( @result . exitcode ) . to eq ( -1 ) , OctocatalogDiff ::Integration . format_exception ( @result )
263- expect ( @result . exception ) . to be_a_kind_of ( OctocatalogDiff :: Errors :: CatalogError )
263+ expect ( @result . exception ) . to be_a_kind_of ( Errno :: ENOENT )
264264 expect ( @result . exception . message ) . to match ( %r{Catalog for 'from' \( origin/master\) failed.+ Errno::ENOENT} )
265265 expect ( @result . exception . message ) . to match ( %r{Specified directory .+/preserve-environments/fluffy doesn't exist} )
266266 end
You can’t perform that action at this time.
0 commit comments