Skip to content

Commit

Permalink
Fix exception backtraces on JRuby.
Browse files Browse the repository at this point in the history
This is a workaround for a JRuby bug:
jruby/jruby#4467
  • Loading branch information
DavidEGrayson committed Jan 31, 2017
1 parent 94dc75e commit f05f604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def run(example_group_instance, reporter)
'Expected example to fail since it is pending, but it passed.',
[location]
end
rescue Pending::SkipDeclaredInExample
rescue Pending::SkipDeclaredInExample => e
# no-op, required metadata has already been set by the `skip`
# method.
rescue AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt => e
Expand Down

0 comments on commit f05f604

Please sign in to comment.