Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require puma/events in test helper #1418

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
Thread.abort_on_exception = true

require "puma"
require "puma/events"
require "puma/detect"

# Either takes a string to do a get request against, or a tuple of [URI, HTTP] where
Expand Down
1 change: 0 additions & 1 deletion test/test_binder.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require_relative "helper"

require "puma/binder"
require "puma/events"
require "puma/puma_http11"

class TestBinder < Minitest::Test
Expand Down
2 changes: 0 additions & 2 deletions test/test_events.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require_relative "helper"

require "puma/events"

class TestEvents < Minitest::Test
def test_null
events = Puma::Events.null
Expand Down
2 changes: 0 additions & 2 deletions test/test_puma_server_ssl.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require_relative "helper"

require "puma/events"

class SSLEventsHelper < ::Puma::Events
attr_accessor :addr, :cert, :error

Expand Down
1 change: 0 additions & 1 deletion test/test_tcp_logger.rb
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
Expand Down
2 changes: 0 additions & 2 deletions test/test_tcp_rack.rb
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
Expand Down