Skip to content

Commit

Permalink
Silence Puma logs during spec suite
Browse files Browse the repository at this point in the history
This is to silence Puma logs and prevent it from writing
```
Puma starting in single mode...
* Version 3.10.0 (ruby 2.4.1-p111), codename: Russell's Teapot
* Min threads: 0, max threads: 1
* Environment: test
* Listening on tcp://0.0.0.0:36775
Use Ctrl-C to stop
```
while running the test suite.

See rspec/rspec-rails#1897 for more context.
  • Loading branch information
Alan Gabbianelli committed Apr 16, 2019
1 parent 8a58605 commit ef5ff02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/govuk_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ def self.configure(options = {})
end

Capybara.javascript_driver = :headless_chrome
Capybara.server = :puma, { Silent: true }
end
end

0 comments on commit ef5ff02

Please sign in to comment.