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
27fce039
Commit
27fce039
authored
Jan 31, 2013
by
Menno van der Sman
Committed by
Jon Yurek
Feb 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for supplying :s3_credentials in an unsupported manor
parent
6b4d5cf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
test/storage/s3_test.rb
+13
-0
No files found.
test/storage/s3_test.rb
View file @
27fce039
...
@@ -737,6 +737,19 @@ class S3Test < Test::Unit::TestCase
...
@@ -737,6 +737,19 @@ class S3Test < Test::Unit::TestCase
end
end
end
end
context
"An attachment with S3 storage and S3 credentials in an unsupported manor"
do
setup
do
rebuild_model
:storage
=>
:s3
,
:bucket
=>
"testing"
,
:s3_credentials
=>
[
"unsupported"
]
@dummy
=
Dummy
.
new
end
should
"not accept the credentials"
do
assert_raise
(
ArgumentError
)
do
@dummy
.
avatar
.
s3_credentials
end
end
end
context
"An attachment with S3 storage and S3 credentials not supplied"
do
context
"An attachment with S3 storage and S3 credentials not supplied"
do
setup
do
setup
do
rebuild_model
:storage
=>
:s3
,
:bucket
=>
"testing"
rebuild_model
:storage
=>
:s3
,
:bucket
=>
"testing"
...
...
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