File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ def temp_copy(image)
204
204
image_optim = ImageOptim . new
205
205
results = test_images . map do |src |
206
206
dst = double
207
- expect ( image_optim ) . to receive ( method ) . with ( src ) . and_return ( dst )
207
+ allow ( image_optim ) . to receive ( method ) . with ( src ) . and_return ( dst )
208
208
[ src , dst ]
209
209
end
210
210
expect ( image_optim . send ( list_method , test_images ) ) . to eq ( results )
@@ -217,7 +217,7 @@ def temp_copy(image)
217
217
image_optim = ImageOptim . new
218
218
results = test_images . map do |src |
219
219
dst = double
220
- expect ( image_optim ) . to receive ( method ) . with ( src ) . and_return ( dst )
220
+ allow ( image_optim ) . to receive ( method ) . with ( src ) . and_return ( dst )
221
221
[ src , dst , :test ]
222
222
end
223
223
expect ( image_optim . send ( list_method , test_images ) do |src , dst |
You can’t perform that action at this time.
0 commit comments