summaryrefslogtreecommitdiff
path: root/test/test_mime_types_cache.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_mime_types_cache.rb')
-rw-r--r--test/test_mime_types_cache.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_mime_types_cache.rb b/test/test_mime_types_cache.rb
index 7bbb894..d8cfb3a 100644
--- a/test/test_mime_types_cache.rb
+++ b/test/test_mime_types_cache.rb
@@ -37,11 +37,11 @@ describe MIME::Types::Cache do
describe '.load' do
it 'does not use cache when RUBY_MIME_TYPES_CACHE is unset' do
ENV.delete('RUBY_MIME_TYPES_CACHE')
- assert_equal(nil, MIME::Types::Cache.load)
+ assert_nil MIME::Types::Cache.load
end
it 'does not use cache when missing' do
- assert_equal(nil, MIME::Types::Cache.load)
+ assert_nil MIME::Types::Cache.load
end
it 'registers the data to be updated by #add_extensions' do
@@ -80,7 +80,7 @@ describe MIME::Types::Cache do
describe '.save' do
it 'does not create cache when RUBY_MIME_TYPES_CACHE is unset' do
ENV.delete('RUBY_MIME_TYPES_CACHE')
- assert_equal(nil, MIME::Types::Cache.save)
+ assert_nil MIME::Types::Cache.save
end
it 'creates the cache ' do