Permalink
Browse files

Fix bug with implicit subject and ruby-1.9.2

- changed lambda to proc
- I remember seeing this is a patch from a contributor, but am sadly
  unable to find that ticket/patch in lighthouse or github
  • Loading branch information...
1 parent 68805b7 commit 39c48941ee55f8cc0573e7a2804ddb3755fe9263 @dchelimsky committed Oct 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/spec/example/subject.rb
@@ -46,7 +46,7 @@ def explicit_subject
end
def implicit_subject
- (described_class ? lambda {described_class.new} : lambda {description_args.first})
+ (described_class ? proc {described_class.new} : proc {description_args.first})
end
end

0 comments on commit 39c4894

Please sign in to comment.