@@ -49,7 +49,7 @@ def deregister_image(parameters)
4949 allow ( Build ::Check ) . to receive ( :on_tag? ) . and_return ( true )
5050 allow ( Build ::Check ) . to receive ( :is_auto_deploy? ) . and_return ( false )
5151 allow ( Build ::Check ) . to receive ( :is_rc_tag? ) . and_return ( false )
52- allow ( Build ::Info ::CI ) . to receive ( :branch_build_package_download_url ) . and_return ( 'http://example.com' )
52+ allow ( Build ::Info ::CI ) . to receive ( :package_download_url ) . and_return ( 'http://example.com' )
5353 end
5454
5555 it 'should identify ce category correctly, if specified' do
@@ -129,7 +129,7 @@ def deregister_image(parameters)
129129 allow ( Build ::Check ) . to receive ( :on_tag? ) . and_return ( true )
130130 allow ( Build ::Check ) . to receive ( :is_auto_deploy? ) . and_return ( false )
131131 allow ( Build ::Check ) . to receive ( :is_rc_tag? ) . and_return ( true )
132- allow ( Build ::Info ::CI ) . to receive ( :branch_build_package_download_url ) . and_return ( 'http://example.com' )
132+ allow ( Build ::Info ::CI ) . to receive ( :package_download_url ) . and_return ( 'http://example.com' )
133133 end
134134
135135 it 'does not do anything' do
@@ -144,7 +144,7 @@ def deregister_image(parameters)
144144 allow ( Build ::Check ) . to receive ( :on_tag? ) . and_return ( true )
145145 allow ( Build ::Check ) . to receive ( :is_auto_deploy? ) . and_return ( true )
146146 allow ( Build ::Check ) . to receive ( :is_rc_tag? ) . and_return ( false )
147- allow ( Build ::Info ::CI ) . to receive ( :branch_build_package_download_url ) . and_return ( 'http://example.com' )
147+ allow ( Build ::Info ::CI ) . to receive ( :package_download_url ) . and_return ( 'http://example.com' )
148148 end
149149
150150 it 'does not do anything' do
0 commit comments