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
0c1e812d
Commit
0c1e812d
authored
Mar 16, 2012
by
Luke Griffiths
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for webmat's fix
parent
8edccdce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test/interpolations_test.rb
+7
-0
No files found.
test/interpolations_test.rb
View file @
0c1e812d
...
@@ -77,6 +77,13 @@ class InterpolationsTest < Test::Unit::TestCase
...
@@ -77,6 +77,13 @@ class InterpolationsTest < Test::Unit::TestCase
assert_equal
"found"
,
interpolations
.
content_type_extension
(
attachment
,
:style
)
assert_equal
"found"
,
interpolations
.
content_type_extension
(
attachment
,
:style
)
end
end
should
"be able to handle numeric style names"
do
attachment
=
mock
(
:styles
=>
{
:"4"
=>
{
:format
=>
:expected_extension
}}
)
assert_equal
:expected_extension
,
Paperclip
::
Interpolations
.
extension
(
attachment
,
4
)
end
should
"return the #to_param of the attachment"
do
should
"return the #to_param of the attachment"
do
attachment
=
mock
attachment
=
mock
attachment
.
expects
(
:to_param
).
returns
(
"23-awesome"
)
attachment
.
expects
(
:to_param
).
returns
(
"23-awesome"
)
...
...
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