lib/blobby/fake_success_store.rb in blobby-1.0.1 vs lib/blobby/fake_success_store.rb in blobby-1.1.0
- old
+ new
@@ -23,10 +23,10 @@
def read
image_path = Pathname(File.dirname(__FILE__)) + "placeholder.png"
image_path.open("rb") do |io|
if block_given?
- while chunk = io.read(512)
+ while (chunk = io.read(512))
yield chunk
end
nil
else
io.read