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

pry-byebug causes blocking of test rails server #84

Closed
joeletizia opened this issue Dec 17, 2015 · 2 comments
Closed

pry-byebug causes blocking of test rails server #84

joeletizia opened this issue Dec 17, 2015 · 2 comments

Comments

@joeletizia
Copy link

Repo that reproduces issue

Summary

When pry-byebug is added to this project's gem file and binding.pry is used within a feature test (RSpec or Cucumber with Capybara) the web thread/process waits on the binding.pry even if that breakpoint is located in the test file. When pry-byebug is removed, the web thread/process is not blocked and the user may click around around if they are using a non-headless browser (Selenium w/ Firefox in this case).

Steps to Reproduce

  1. Clone this repo.
  2. bundle
  3. rake db:create
  4. rspec spec/features/users/sign_in_spec.rb:11
  5. When the break point is reached, attempt to click a link to a new page.

Expected Result

The server is able to handle the request and renders the page.

Actual Result

The server hangs waiting on the binding.pry call.

  1. Continue on from the breakpoint.
  2. Remove gem 'pry-byebug' from the gem file.
  3. rspec spec/features/users/sign_in_spec.rb:11
  4. When the break point is reached, attempt to click a link to a new page.

Actual Result

The server does not wait on the binding.pry call.

Is this intended behavior? Maybe this is related to #69?

@deivid-rodriguez
Copy link
Owner

Hi @joeletizia, thanks for the report. I think this is a duplicate of #69 indeed, so I'm going to close this. Feel free to reopen if you disagree.

@deivid-rodriguez
Copy link
Owner

Never actually closed it...

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

2 participants