jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Running teaspoon with the Unicorn server #216

Closed YoranBrondsema closed 10 years ago

YoranBrondsema commented 10 years ago

Hi,

I'm using the unicorn server in product and I would like to have the same environment during CI. For that, I set config.server = :unicorn in teaspoon_env.rb. However, when I launch teaspoon from the CLI, it quits with an error:

$> RAILS_ENV=test bundle exec teaspoon
Starting the Teaspoon server...
Cannot start server: no implicit conversion of nil into String

Is it something with my configuration? Or with teaspoon?

jejacks0n commented 10 years ago

does it work if you don't specify?

YoranBrondsema commented 10 years ago

No it doesn't. I checked and it fails with this error from the moment that I add the unicorn gem to the Gemfile.

EDIT: Sorry, I have to add both the unicorn and the rack-handlers gem for it to fail.

jejacks0n commented 10 years ago

So I assume this is a rack-handlers issue.. worth noting.