summaryrefslogtreecommitdiff
path: root/test/spec_media_type.rb
diff options
context:
space:
mode:
authorJian Weihang <tonytonyjan@gmail.com>2016-12-05 03:07:48 +0800
committerJian Weihang <tonytonyjan@gmail.com>2016-12-05 03:07:48 +0800
commit7449820d6d0145680d2375aa424a2bfa6cc7859e (patch)
tree268224bd7d7c1477c4bce569f4854f9ec64ac0e0 /test/spec_media_type.rb
parentb145f426364feaee5a434582d67fab4901a64f81 (diff)
downloadrack-7449820d6d0145680d2375aa424a2bfa6cc7859e.tar.gz
To support minitest 6 and prevent error ouput in minitest 5, use `must_be_nil` if expecting nil.
Diffstat (limited to 'test/spec_media_type.rb')
-rw-r--r--test/spec_media_type.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/spec_media_type.rb b/test/spec_media_type.rb
index ef054364..1d9f0fc3 100644
--- a/test/spec_media_type.rb
+++ b/test/spec_media_type.rb
@@ -8,7 +8,7 @@ describe Rack::MediaType do
before { @content_type = nil }
it '#type is nil' do
- Rack::MediaType.type(@content_type).must_equal nil
+ Rack::MediaType.type(@content_type).must_be_nil
end
it '#params is empty' do