Capybara: Puma startup message showing up in the rspec output

Created on 22 Apr 2018  路  4Comments  路  Source: teamcapybara/capybara

Capybara Version: 3.0.2
Driver Information: selenium-webdriver 3.11.0

Hi ! I just upgraded from 2.x to 3.0.2 and noticed Puma startup messages in the rspec output:
image

I guess this is since 3.0.0:

Use Puma::Server directly rather than Rack::Handler::Puma so signal handlers don't prevent test quitting

Most helpful comment

This is because the default server for use with tests changed to :puma between 2.x and 3.x. You can go back to WEBrick if wanted with Capybara.server = :webrick or, as mentioned in the README, you can pass options to Puma like Capybara.server = :puma, { Silent: true }

All 4 comments

This is because the default server for use with tests changed to :puma between 2.x and 3.x. You can go back to WEBrick if wanted with Capybara.server = :webrick or, as mentioned in the README, you can pass options to Puma like Capybara.server = :puma, { Silent: true }

Ok I see, thanks for the quick response. I think the Silent: true option should be the default but that's for you to decide ;)

It is specifically not the default because it's useful debugging info when people start trying to get their Capybara JS supporting tests running.

Mm ok ^^

Was this page helpful?
0 / 5 - 0 ratings