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
4771aeeb
Commit
4771aeeb
authored
Jun 13, 2015
by
David Chen
Committed by
Jon Yurek
Aug 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AWS S3 service change, status is 403 when accessing deleted object instead of 404
parent
ccaaaad6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
spec/paperclip/storage/s3_live_spec.rb
+1
-1
spec/support/assertions.rb
+7
-0
No files found.
spec/paperclip/storage/s3_live_spec.rb
View file @
4771aeeb
...
...
@@ -140,7 +140,7 @@ unless ENV["S3_BUCKET"].blank?
it
"is destroyable"
do
url
=
@dummy
.
avatar
.
url
@dummy
.
destroy
assert_
not_found
_response
url
assert_
forbidden
_response
url
end
end
...
...
spec/support/assertions.rb
View file @
4771aeeb
...
...
@@ -61,6 +61,13 @@ module Assertions
end
end
def
assert_forbidden_response
(
url
)
Net
::
HTTP
.
get_response
(
URI
.
parse
(
url
))
do
|
response
|
assert_equal
"403"
,
response
.
code
,
"Expected HTTP response code 403, got
#{
response
.
code
}
"
end
end
def
assert_frame_dimensions
(
range
,
frames
)
frames
.
each_with_index
do
|
frame
,
frame_index
|
frame
.
split
(
'x'
).
each_with_index
do
|
dimension
,
dimension_index
|
...
...
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