summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2023-02-16 21:45:29 -0500
committerAustin Ziegler <austin@zieglers.ca>2023-02-17 00:36:52 -0500
commitb9382fe8c1593c7d6589cd62d59903926cfca51b (patch)
tree62a7c891831bd155365fa5577d6a1060ccd94afa /test
parent0bf7805068a6b8e53abbe5ac7c09aedda63ee54f (diff)
downloadmime-types-main.tar.gz
Various upgradesHEADmain
- Update the .github/workflows/ci.yml workflow to test Ruby 3.2 and more reliably test certain combinations rather than depending on exclusions. - Change `.standard.yml` configuration to format for Ruby 2.3 as certain files are not properly detected with Ruby 2.0. - Change from `hoe-git` to `hoe-git2` to support Hoe version 4. - Apply `standardrb --fix`. - Update other dependencies.
Diffstat (limited to 'test')
-rw-r--r--test/test_mime_types_cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_mime_types_cache.rb b/test/test_mime_types_cache.rb
index 909f18c..48a8bb3 100644
--- a/test/test_mime_types_cache.rb
+++ b/test/test_mime_types_cache.rb
@@ -67,7 +67,7 @@ describe MIME::Types::Cache do
it "outputs an error when there is a marshal file incompatibility" do
MIME::Types::Cache.save
data = File.binread(@cache_file).reverse
- File.open(@cache_file, "wb") { |f| f.write(data) }
+ File.binwrite(@cache_file, data)
MIME::Types.instance_variable_set(:@__types__, nil)
assert_output "", /incompatible marshal file format/ do
MIME::Types["text/html"]