@@ -45,7 +45,7 @@ def self.catalog_contains_resource(result, type, title)
4545 end
4646
4747 it 'should return the valid catalog' do
48- expect ( @result . exitcode ) . to eq ( 2 ) , OctocatalogDiff ::Integration . format_exception ( @result )
48+ expect ( @result . exitcode ) . to eq ( 0 ) , OctocatalogDiff ::Integration . format_exception ( @result )
4949 end
5050end
5151
@@ -55,15 +55,15 @@ def self.catalog_contains_resource(result, type, title)
5555 end
5656
5757 it 'should return the valid catalog' do
58- expect ( @result . exitcode ) . to eq ( 2 )
58+ expect ( @result . exitcode ) . to eq ( 0 )
5959 end
6060
6161 it 'should not raise any exceptions' do
6262 expect ( @result . exception ) . to be_nil , OctocatalogDiff ::Integration . format_exception ( @result )
6363 end
6464
6565 it 'should contain representative resources' do
66- pending 'Catalog failed' unless @result . exitcode == 2
66+ pending 'Catalog failed' unless @result . exitcode . zero?
6767 expect ( OctocatalogDiff ::Spec . catalog_contains_resource ( @result , 'File' , '/tmp/test-main' ) ) . to eq ( true )
6868 end
6969end
@@ -75,15 +75,15 @@ def self.catalog_contains_resource(result, type, title)
7575 end
7676
7777 it 'should succeed' do
78- expect ( @result . exitcode ) . to eq ( 2 )
78+ expect ( @result . exitcode ) . to eq ( 0 )
7979 end
8080
8181 it 'should not raise any exceptions' do
8282 expect ( @result . exception ) . to be_nil , OctocatalogDiff ::Integration . format_exception ( @result )
8383 end
8484
8585 it 'should contain representative resources' do
86- pending 'Catalog failed' unless @result . exitcode == 2
86+ pending 'Catalog failed' unless @result . exitcode . zero?
8787 expect ( OctocatalogDiff ::Spec . catalog_contains_resource ( @result , 'Exec' , 'subscribe caller 1' ) ) . to eq ( true )
8888 expect ( OctocatalogDiff ::Spec . catalog_contains_resource ( @result , 'Exec' , 'subscribe target' ) ) . to eq ( true )
8989 end
@@ -179,7 +179,7 @@ def self.catalog_contains_resource(result, type, title)
179179 end
180180
181181 it 'should succeed' do
182- expect ( @result . exitcode ) . to eq ( 2 ) , OctocatalogDiff ::Integration . format_exception ( @result )
182+ expect ( @result . exitcode ) . to eq ( 0 ) , OctocatalogDiff ::Integration . format_exception ( @result )
183183 end
184184
185185 it 'should not raise error' do
@@ -195,15 +195,15 @@ def self.catalog_contains_resource(result, type, title)
195195 end
196196
197197 it 'should succeed' do
198- expect ( @result . exitcode ) . to eq ( 2 )
198+ expect ( @result . exitcode ) . to eq ( 0 )
199199 end
200200
201201 it 'should not raise any exceptions' do
202202 expect ( @result . exception ) . to be_nil , OctocatalogDiff ::Integration . format_exception ( @result )
203203 end
204204
205205 it 'should contain representative resources' do
206- pending 'Catalog failed' unless @result . exitcode == 2
206+ pending 'Catalog failed' unless @result . exitcode . zero?
207207 expect ( OctocatalogDiff ::Spec . catalog_contains_resource ( @result , 'Exec' , 'before alias caller' ) ) . to eq ( true )
208208 expect ( OctocatalogDiff ::Spec . catalog_contains_resource ( @result , 'Exec' , 'before alias target' ) ) . to eq ( true )
209209 expect ( OctocatalogDiff ::Spec . catalog_contains_resource ( @result , 'Exec' , 'the before alias target' ) ) . to eq ( true )
0 commit comments