Skip to content

Instantly share code, notes, and snippets.

@fables-tales
Created September 23, 2012 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fables-tales/3770411 to your computer and use it in GitHub Desktop.
Save fables-tales/3770411 to your computer and use it in GitHub Desktop.
diff --git a/lib/rspec/core/hooks.rb b/lib/rspec/core/hooks.rb
index ea3ca91..b55b685 100644
--- a/lib/rspec/core/hooks.rb
+++ b/lib/rspec/core/hooks.rb
@@ -20,7 +20,10 @@ module RSpec
include HookExtension
def run(example)
- example.instance_eval(&self)
+ begin
+ example.instance_eval(&self)
+ rescue
+ end
end
def display_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment