Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
Account for different file command version
Browse files Browse the repository at this point in the history
I don't know if it's M1-specific, but my MacBook returns
`application/octet-stream`.
  • Loading branch information
janko committed Dec 19, 2021
1 parent 5acb63d commit f62b7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/plugin/determine_mime_type_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
end

it "returns text/plain for unidentified MIME types" do
assert_equal "text/plain", @shrine.determine_mime_type(fakeio("a" * 5*1024*1024))
assert_includes ["text/plain", "application/octet-stream"], @shrine.determine_mime_type(fakeio("a" * 5*1024*1024))
end

it "is able to determine MIME type for non-files" do
Expand Down

0 comments on commit f62b7c3

Please sign in to comment.