diff options
author | Jeremy Evans <code@jeremyevans.net> | 2020-01-27 13:47:14 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2020-01-27 19:30:54 -0800 |
commit | 68dde7b79b30dd1a721eaf503e20ace8e162b980 (patch) | |
tree | 82696af7fc3b1af32884ef12b4503415b439e9ad /test/spec_media_type.rb | |
parent | 30f818b2e6a00543b3b5910daa7c8ee39887544c (diff) | |
download | rack-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_media_type.rb')
-rw-r--r-- | test/spec_media_type.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/spec_media_type.rb b/test/spec_media_type.rb index 7d52b4d4..a00a767e 100644 --- a/test/spec_media_type.rb +++ b/test/spec_media_type.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true -require 'minitest/global_expectations/autorun' -require 'rack/media_type' +require_relative 'helper' describe Rack::MediaType do before { @empty_hash = {} } |