Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not entering pry from Cucumber 'Around' hook #46

Closed
duncan-bayne opened this issue Oct 23, 2013 · 2 comments
Closed

not entering pry from Cucumber 'Around' hook #46

duncan-bayne opened this issue Oct 23, 2013 · 2 comments

Comments

@duncan-bayne
Copy link

I've added an Around hook to my Cucumber features that I had hoped would cause pry-rescue to start pry when an exception was thrown:

Around do |scenario, block|
  Pry::rescue do
    block.call
  end
end

The Around hook is definitely being called, however exceptions thrown within steps aren't rescued. E.g. this step:

When(/^I perform the action$/) do
  raise 'hell'
end

... causes the feature to fail, but doesn't drop me into pry at the console.

@duncan-bayne
Copy link
Author

@duncan-bayne
Copy link
Author

Closing this as haven't touched it in seven years :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant