mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-15 00:01:36 -04:00
Don't use symbol to proc in tests so that they'll run on Ruby 1.8.6
This commit is contained in:
parent
ec7c74442b
commit
706468e70f
@ -74,8 +74,8 @@ class RequestMiddlewareTest < Faraday::TestCase
|
||||
assert_kind_of Faraday::CompositeReadIO, response.body
|
||||
assert_equal "multipart/form-data;boundary=%s" % Faraday::Request::Multipart::DEFAULT_BOUNDARY,
|
||||
response.headers['Content-Type']
|
||||
|
||||
response.body.send(:ios).map(&:read).each do |io|
|
||||
|
||||
response.body.send(:ios).map{|io| io.read}.each do |io|
|
||||
if re = regexes.detect { |r| io =~ r }
|
||||
regexes.delete re
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user