Permalink
Browse files

ruby-1.9.2 compat - change lambdas to procs

  • Loading branch information...
1 parent 5825557 commit 11eb090a080405e2bcbdb456d8dde867aedeb413 @dchelimsky dchelimsky committed Apr 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rspec/core/subject.rb
@@ -69,7 +69,7 @@ def explicit_subject
def implicit_subject
described = describes || description
- Class === described ? lambda { described.new } : lambda { described }
+ Class === described ? proc { described.new } : proc { described }
end
end
end

0 comments on commit 11eb090

Please sign in to comment.