Skip to content

Commit

Permalink
Ruby 1.9 instance_eval doesn't like lambdas, use a proc instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cap10morgan authored and jnunemaker committed Apr 12, 2012
1 parent 2dc6872 commit de8fa29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/steps/remote_service_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de8fa29

Please sign in to comment.