Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

open a pry session within the example block on failure

  • Loading branch information...
commit 90ae3c5fdab3d635e2ee0ef7c763d22011ff867a 1 parent 0ac4e6e
David Chelimsky dchelimsky authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  Gemfile
  2. +1 −0  lib/rspec/core/example.rb
1  Gemfile
View
@@ -21,6 +21,7 @@ gem "guard-rspec", "0.1.9"
gem "growl", "1.0.3"
gem "ZenTest", "~> 4.4.2"
gem "nokogiri", "1.4.4"
+gem "pry", "0.8.2"
platforms :mri_18 do
gem 'ruby-debug'
1  lib/rspec/core/example.rb
View
@@ -49,6 +49,7 @@ def run(example_group_instance, reporter)
rescue Pending::PendingDeclaredInExample => e
@pending_declared_in_example = e.message
rescue Exception => e
+ @example_group_instance.instance_eval { pry } if defined?(Pry)
set_exception(e)
ensure
run_after_each
Please sign in to comment.
Something went wrong with that request. Please try again.