lib/cucumber/formatter/json.rb in cucumber-3.0.1 vs lib/cucumber/formatter/json.rb in cucumber-3.0.2
- old
+ new
@@ -80,10 +80,10 @@
test_step_output << message
end
def embed(src, mime_type, _label)
if File.file?(src)
- content = File.open(src, 'rb') { |f| f.read }
+ content = File.open(src, 'rb', &:read)
data = encode64(content)
else
if mime_type =~ /;base64$/
mime_type = mime_type[0..-8]
data = src