Skip to content


Fix cukes in Ruby 1.9 #114

wants to merge 1 commit into from

2 participants


It appears that instance_eval in Ruby 1.9 doesn't play well with lambdas, but it does like procs. This was breaking the cukes, so I changed it to a proc and now the cukes are all green in 1.9



@jnunemaker jnunemaker closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 features/steps/remote_service_steps.rb
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 = { sleep time.to_i }
Given /^a remote deflate service$/ do
Something went wrong with that request. Please try again.