summaryrefslogtreecommitdiff
path: root/test/spec_runtime.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-01-27 13:47:14 -0800
committerJeremy Evans <code@jeremyevans.net>2020-01-27 19:30:54 -0800
commit68dde7b79b30dd1a721eaf503e20ace8e162b980 (patch)
tree82696af7fc3b1af32884ef12b4503415b439e9ad /test/spec_runtime.rb
parent30f818b2e6a00543b3b5910daa7c8ee39887544c (diff)
downloadrack-68dde7b79b30dd1a721eaf503e20ace8e162b980.tar.gz
DRY up tests using the test helper
For some reason, the test helper was only used by a single spec file. This uses it for all spec files. While here, rely on autoload loading the libraries instead of loading everything manually.
Diffstat (limited to 'test/spec_runtime.rb')
-rw-r--r--test/spec_runtime.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/spec_runtime.rb b/test/spec_runtime.rb
index 10e561de..10c0c382 100644
--- a/test/spec_runtime.rb
+++ b/test/spec_runtime.rb
@@ -1,9 +1,6 @@
# frozen_string_literal: true
-require 'minitest/global_expectations/autorun'
-require 'rack/lint'
-require 'rack/mock'
-require 'rack/runtime'
+require_relative 'helper'
describe Rack::Runtime do
def runtime_app(app, *args)