Permalink
Browse files

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

  • Loading branch information...
1 parent 8fe9fda commit 5ab3ae23e3813de14c7359b253912722d332d188 @cap10morgan cap10morgan committed Dec 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/steps/remote_service_steps.rb
View
2 features/steps/remote_service_steps.rb
@@ -14,7 +14,7 @@
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

0 comments on commit 5ab3ae2

Please sign in to comment.