|
22 | 22 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
23 | 23 | end |
24 | 24 |
|
25 | | - it 'should raise OctocatalogDiff::Util::Catalogs::CatalogError' do |
26 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 25 | + it 'should raise OctocatalogDiff::Errors::CatalogError' do |
| 26 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
27 | 27 | end |
28 | 28 |
|
29 | 29 | it 'should fail because ::bar could not be located' do |
|
98 | 98 |
|
99 | 99 | it 'should exit with error status due modules in production environment not being found' do |
100 | 100 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
101 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 101 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
102 | 102 | expect(@result.exception.message).to match(/Errno::ENOENT: No such file or directory - Environment directory/) |
103 | 103 | end |
104 | 104 | end |
|
121 | 121 |
|
122 | 122 | it 'should error on missing environment' do |
123 | 123 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
124 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 124 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
125 | 125 | expect(@result.exception.message).to match(%r{Environment directory .+/environments/fluffy does not exist}) |
126 | 126 | end |
127 | 127 | end |
|
208 | 208 |
|
209 | 209 | it 'should error on missing site directory' do |
210 | 210 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
211 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 211 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
212 | 212 | expect(@result.exception.message).to match(/Could not find class (::)?sitetest/) |
213 | 213 | end |
214 | 214 | end |
|
231 | 231 |
|
232 | 232 | it 'should error on missing module' do |
233 | 233 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
234 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 234 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
235 | 235 | expect(@result.exception.message).to match(/Could not find class (::)?foo/) |
236 | 236 | end |
237 | 237 | end |
|
254 | 254 |
|
255 | 255 | it 'should raise exception due to missing symlink request' do |
256 | 256 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
257 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 257 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
258 | 258 | expect(@result.exception.message).to match(%r{Catalog for 'from' \(origin/master\) failed.+ Errno::ENOENT}) |
259 | 259 | expect(@result.exception.message).to match(%r{Specified directory .+/preserve-environments/fluffy doesn't exist}) |
260 | 260 | end |
|
303 | 303 |
|
304 | 304 | it 'should error on missing site directory' do |
305 | 305 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
306 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 306 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
307 | 307 | expect(@result.exception.message).to match(/Could not find class (::)?sitetest/) |
308 | 308 | end |
309 | 309 | end |
|
326 | 326 |
|
327 | 327 | it 'should error on missing site directory' do |
328 | 328 | expect(@result.exitcode).to eq(-1), OctocatalogDiff::Integration.format_exception(@result) |
329 | | - expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Util::Catalogs::CatalogError) |
| 329 | + expect(@result.exception).to be_a_kind_of(OctocatalogDiff::Errors::CatalogError) |
330 | 330 | expect(@result.exception.message).to match(/Could not find class (::)?sitetest/) |
331 | 331 | end |
332 | 332 | end |
|
0 commit comments