@@ -49,7 +49,7 @@ def deregister_image(parameters)
49
49
allow ( Build ::Check ) . to receive ( :on_tag? ) . and_return ( true )
50
50
allow ( Build ::Check ) . to receive ( :is_auto_deploy? ) . and_return ( false )
51
51
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' )
53
53
end
54
54
55
55
it 'should identify ce category correctly, if specified' do
@@ -129,7 +129,7 @@ def deregister_image(parameters)
129
129
allow ( Build ::Check ) . to receive ( :on_tag? ) . and_return ( true )
130
130
allow ( Build ::Check ) . to receive ( :is_auto_deploy? ) . and_return ( false )
131
131
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' )
133
133
end
134
134
135
135
it 'does not do anything' do
@@ -144,7 +144,7 @@ def deregister_image(parameters)
144
144
allow ( Build ::Check ) . to receive ( :on_tag? ) . and_return ( true )
145
145
allow ( Build ::Check ) . to receive ( :is_auto_deploy? ) . and_return ( true )
146
146
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' )
148
148
end
149
149
150
150
it 'does not do anything' do
0 commit comments