Search code examples
ruby-on-railsrspecrspec-rails

Rspec 3.7.0 is showing Puma logs during spec suite


I just upgraded Rspec from 3.6.0 to 3.7.0, and rspec-rails from 3.6.1 to 3.7.1. I'm using these libraries in a rails 5.1 app.

Since this upgrade, this is happening during my spec suite :

enter image description here

It's not linked to a specific spec, it's displayed in a random spot.

Looks like something changed in rspec configuration, but I can't find it in the changelog.


Solution

  • The solution came from that github issue: https://github.com/rspec/rspec-rails/issues/1897

    Solution is to add the following line to rails_helper:

    ActionDispatch::SystemTesting::Server.silence_puma = true