Created
September 23, 2012 12:34
-
-
Save fables-tales/3770411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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