highfidelity/fake_braintree

Server does not start when using Spring

Closed this issue · 9 comments

It looks like the server isn't starting when the bin/rspec file has been springified (https://github.com/jonleighton/spring-commands-rspec) using Rails 4.1.8. Has anyone else experienced this?

Have you tried using the latest version from GitHub? It might have been a problem with Thin.

(Thin is in the latest released version, but was removed in the unreleased version on GitHub.)

I'm getting the same failure when I bundle from Github (a520338). When I use a springified rspec binstub, I don't see the output of thin starting up like I do when a normal rspec binstub.

A few basic debugging questions:

  • Do you see an error or a crash, or does the server simply not start?
  • Are you sure that the server isn't starting? e.g. do you have tests that use fake_braintree that are failing?

Do you see an error or a crash, or does the server simply not start?

The typical message from the server starting up:

$ bin/rspec
Thin web server (v1.6.2 codename Doc Brown)
Maximum connections set to 1024
Listening on 0.0.0.0:55124, CTRL+C to stop

is absent when I'm using the springified binstub.

Are you sure that the server isn't starting? e.g. do you have tests that use fake_braintree that are failing?

I have a test that I know relies on fake_braintree that passes when not using spring, but fails when using spring.

That's very helpful. Just to be clear, though, when the tests DO work, you don't see the output about Thin, right? Because Thin shouldn't be starting at all with the latest Github version of the library.

You can also use the recently-released v0.6.0 now instead of pulling it from GitHub.

I've confirmed that the latest release works. Thank you!

Great!