mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Ruby 1.9 instance_eval doesn't like lambdas, use a proc instead
This commit is contained in:
parent
2dc6872ae3
commit
de8fa29928
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ end
|
|||
|
||||
Given /^that service takes (\d+) seconds to generate a response$/ do |time|
|
||||
@server_response_time = time.to_i
|
||||
@handler.preprocessor = lambda { sleep time.to_i }
|
||||
@handler.preprocessor = Proc.new { sleep time.to_i }
|
||||
end
|
||||
|
||||
Given /^a remote deflate service$/ do
|
||||
|
|
Loading…
Add table
Reference in a new issue