Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require puma/events in test helper (#1418)
Moves the require for puma/events from the individual test files and into the main test helper. The reason for this was while I was debugging the `test_puma_server.rb` tests I was getting an error for an uninitialized constant for `Puma::Event`. Moving the require from the individual files to the test help means the `puma/events` will always be included instead of having to remember to do that. It makes debugging individual tests locally easier.
- Loading branch information
1 parent
459ab19
commit 6714214
Showing
6 changed files
with
1 addition
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
require_relative "helper" | ||
|
||
require "puma/events" | ||
require "puma/tcp_logger" | ||
|
||
class TestTCPLogger < Minitest::Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
require_relative "helper" | ||
|
||
require "puma/events" | ||
|
||
class TestTCPRack < Minitest::Test | ||
|
||
def setup | ||
|