Skip to content
This repository
Browse code

Ruby 1.9 instance_eval doesn't like lambdas, use a proc instead

  • Loading branch information...
commit 5ab3ae23e3813de14c7359b253912722d332d188 1 parent 8fe9fda
Wes Morgan cap10morgan authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  features/steps/remote_service_steps.rb
2  features/steps/remote_service_steps.rb
@@ -14,7 +14,7 @@
14 14
15 15 Given /^that service takes (\d+) seconds to generate a response$/ do |time|
16 16 @server_response_time = time.to_i
17   - @handler.preprocessor = lambda { sleep time.to_i }
  17 + @handler.preprocessor = Proc.new { sleep time.to_i }
18 18 end
19 19
20 20 Given /^a remote deflate service$/ do

0 comments on commit 5ab3ae2

Please sign in to comment.
Something went wrong with that request. Please try again.