Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 457
Ruff9 Avatar asked Nov 07 '22 15:11

Ruff9


1 Answers

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
like image 62
Ruff9 Avatar answered Nov 27 '22 07:11

Ruff9