Skip to content

Commit

Permalink
Be more explicit about passing a block
Browse files Browse the repository at this point in the history
JRuby 1.6.0 is not likely to support the previous bit of Proc.new
magic; see http://jira.codehaus.org/browse/JRUBY-5420

- Closes #291.
  • Loading branch information
John Firebaugh authored and dchelimsky committed Jan 26, 2011
1 parent 9312588 commit c3207da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/core/example.rb
Expand Up @@ -93,11 +93,11 @@ def with_pending_capture
end
end

def with_around_hooks
def with_around_hooks(&block)
if around_hooks.empty?
yield
else
@example_group_class.eval_around_eachs(self, Procsy.new(metadata)).call
@example_group_class.eval_around_eachs(self, Procsy.new(metadata, &block)).call
end
end

Expand Down

0 comments on commit c3207da

Please sign in to comment.