Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
a7313e91
Commit
a7313e91
authored
Jan 24, 2014
by
Dan Collis-Puro
Committed by
Jon Yurek
Jan 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test invalidated by better content-type detection semantics
parent
7b5a71a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
test/io_adapters/file_adapter_test.rb
+0
-11
No files found.
test/io_adapters/file_adapter_test.rb
View file @
a7313e91
...
...
@@ -69,17 +69,6 @@ class FileAdapterTest < Test::Unit::TestCase
end
end
context
"file with multiple possible x-types but no official type"
do
setup
do
MIME
::
Types
.
stubs
(
:type_for
).
returns
([
MIME
::
Type
.
new
(
'image/x-mp4'
),
MIME
::
Type
.
new
(
'image/x-video'
)])
@subject
=
Paperclip
.
io_adapters
.
for
(
@file
)
end
should
"return the first"
do
assert_equal
"image/x-mp4"
,
@subject
.
content_type
end
end
context
"file with content type derived from file command on *nix"
do
setup
do
MIME
::
Types
.
stubs
(
:type_for
).
returns
([])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment