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
3b66d309
Commit
3b66d309
authored
Aug 29, 2014
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix content type indeterminism on Travis
parent
84ad7182
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/paperclip/interpolations_spec.rb
+2
-2
No files found.
spec/paperclip/interpolations_spec.rb
View file @
3b66d309
...
@@ -55,11 +55,11 @@ describe Paperclip::Interpolations do
...
@@ -55,11 +55,11 @@ describe Paperclip::Interpolations do
it
"returns the extension of the file based on the content type"
do
it
"returns the extension of the file based on the content type"
do
attachment
=
mock
attachment
=
mock
attachment
.
expects
(
:content_type
).
returns
(
'image/
jpe
g'
)
attachment
.
expects
(
:content_type
).
returns
(
'image/
pn
g'
)
attachment
.
expects
(
:styles
).
returns
({})
attachment
.
expects
(
:styles
).
returns
({})
interpolations
=
Paperclip
::
Interpolations
interpolations
=
Paperclip
::
Interpolations
interpolations
.
expects
(
:extension
).
returns
(
'random'
)
interpolations
.
expects
(
:extension
).
returns
(
'random'
)
assert_equal
"
jpe
g"
,
interpolations
.
content_type_extension
(
attachment
,
:style
)
assert_equal
"
pn
g"
,
interpolations
.
content_type_extension
(
attachment
,
:style
)
end
end
it
"returns the original extension of the file if it matches a content type extension"
do
it
"returns the original extension of the file if it matches a content type extension"
do
...
...
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