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
9ef9b512
Commit
9ef9b512
authored
9 years ago
by
Isaac Betesh
Committed by
Jon Yurek
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proof-of-concept for making specs run with Aws v2
parent
c6dce205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
spec/paperclip/storage/s3_spec.rb
+4
-3
No files found.
spec/paperclip/storage/s3_spec.rb
View file @
9ef9b512
...
@@ -3,17 +3,18 @@ require 'aws-sdk'
...
@@ -3,17 +3,18 @@ require 'aws-sdk'
describe
Paperclip
::
Storage
::
S3
do
describe
Paperclip
::
Storage
::
S3
do
before
do
before
do
AWS
.
stub!
AWS
.
stub!
unless
defined?
(
::
Aws
)
end
end
let
(
:client
)
{
Aws
::
S3
::
Client
.
new
(
stub_responses:
true
)
}
context
"Parsing S3 credentials"
do
context
"Parsing S3 credentials"
do
before
do
before
do
@proxy_settings
=
{
host:
"127.0.0.1"
,
port:
8888
,
user:
"foo"
,
password:
"bar"
}
@proxy_settings
=
{
host:
"127.0.0.1"
,
port:
8888
,
user:
"foo"
,
password:
"bar"
}
rebuild_model
storage: :s3
,
rebuild_model
(
defined?
(
::
Aws
)
?
{
client:
client
}
:
{}).
merge
storage: :s3
,
bucket:
"testing"
,
bucket:
"testing"
,
http_proxy:
@proxy_settings
,
http_proxy:
@proxy_settings
,
s3_credentials:
{
not: :important
}
s3_credentials:
{
not: :important
}
@dummy
=
Dummy
.
new
@dummy
=
Dummy
.
new
@avatar
=
@dummy
.
avatar
@avatar
=
@dummy
.
avatar
end
end
...
...
This diff is collapsed.
Click to expand it.
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