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
dfb15428
Commit
dfb15428
authored
Jul 18, 2015
by
Tim Kennedy
Committed by
Dave Gynn
Nov 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test for a bug in interpolations
parent
48cad66f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
spec/paperclip/interpolations_spec.rb
+9
-0
No files found.
spec/paperclip/interpolations_spec.rb
View file @
dfb15428
...
@@ -250,4 +250,13 @@ describe Paperclip::Interpolations do
...
@@ -250,4 +250,13 @@ describe Paperclip::Interpolations do
value
=
Paperclip
::
Interpolations
.
interpolate
(
":notreal/:id/:attachment"
,
:attachment
,
:style
)
value
=
Paperclip
::
Interpolations
.
interpolate
(
":notreal/:id/:attachment"
,
:attachment
,
:style
)
assert_equal
":notreal/1234/attachments"
,
value
assert_equal
":notreal/1234/attachments"
,
value
end
end
it
"handles question marks"
do
Paperclip
.
interpolates
:foo?
do
"bar"
end
Paperclip
::
Interpolations
.
expects
(
:fool
).
never
value
=
Paperclip
::
Interpolations
.
interpolate
(
":fo/:foo?"
)
assert_equal
":fo/bar"
,
value
end
end
end
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