lib/typhoeus/expectation.rb in typhoeus-0.8.0 vs lib/typhoeus/expectation.rb in typhoeus-1.0.0
- old
+ new
@@ -135,10 +135,10 @@
# expectation.and_return(response)
#
# @return [ void ]
def and_return(response=nil, &block)
new_response = (response.nil? ? block : response)
- responses.push *new_response
+ responses.push(*new_response)
end
# Checks whether this expectation matches
# the provided request.
#