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
3a76abef
Commit
3a76abef
authored
Dec 05, 2014
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup formatting of "not escape to timestamp"
parent
ecfb5e2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
spec/paperclip/url_generator_spec.rb
+5
-7
No files found.
spec/paperclip/url_generator_spec.rb
View file @
3a76abef
...
...
@@ -193,21 +193,19 @@ describe Paperclip::UrlGenerator do
def
url_generator
.
respond_to
(
params
)
false
if
params
==
:escape
end
if
updated_at
url_generator
.
for
(
:style_name
,
{
escape:
true
,
timestamp:
true
})
else
url_generator
.
for
(
:style_name
,
{
escape:
true
})
end
url_generator
.
for
(
:style_name
,
{
escape:
true
,
timestamp:
!!
updated_at
})
end
it
"not timestamp"
do
expected
=
"the(expected)result[]"
assert_equal
"the%28expected%29result%5B%5D"
,
generate
(
expected
)
end
it
"timestamp"
do
expected
=
"the(expected)result[]"
updated_at
=
1231231234
assert_equal
"the%28expected%29result%5B%5D?
#{
updated_at
}
"
,
generate
(
expected
,
updated_at
)
assert_equal
"the%28expected%29result%5B%5D?
#{
updated_at
}
"
,
generate
(
expected
,
updated_at
)
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