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
2c0760b5
Commit
2c0760b5
authored
May 07, 2018
by
Roderick Monje
Committed by
Sid Raval
May 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test coverage for preserving params in file URLs
parent
e5d97597
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb
+9
-8
No files found.
spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb
View file @
2c0760b5
...
...
@@ -69,17 +69,18 @@ describe Paperclip::HttpUrlProxyAdapter do
end
context
"a url with query params"
do
before
do
@url
=
"https://github.com/thoughtbot/paperclip?file=test"
@subject
=
Paperclip
.
io_adapters
.
for
(
@url
)
end
subject
{
Paperclip
.
io_adapters
.
for
(
url
)
}
after
do
@subject
.
close
end
after
{
subject
.
close
}
let
(
:url
)
{
"https://github.com/thoughtbot/paperclip?file=test"
}
it
"returns a file name"
do
assert_equal
"paperclip"
,
@subject
.
original_filename
assert_equal
"paperclip"
,
subject
.
original_filename
end
it
"preserves params"
do
assert_equal
url
,
subject
.
instance_variable_get
(
:@target
).
to_s
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