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
26ef20e1
Commit
26ef20e1
authored
Jun 20, 2011
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing whitespace issue
💣
parent
f033d952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test/storage_test.rb
+5
-5
No files found.
test/storage_test.rb
View file @
26ef20e1
...
...
@@ -7,7 +7,7 @@ class StorageTest < Test::Unit::TestCase
Object
.
const_set
(
:Rails
,
stub
(
'Rails'
,
:env
=>
env
))
end
end
context
"filesystem"
do
setup
do
rebuild_model
:styles
=>
{
:thumbnail
=>
"25x25#"
}
...
...
@@ -15,16 +15,16 @@ class StorageTest < Test::Unit::TestCase
@dummy
.
avatar
=
File
.
open
(
File
.
join
(
File
.
dirname
(
__FILE__
),
"fixtures"
,
"5k.png"
))
end
should
"allow file assignment"
do
assert
@dummy
.
save
end
should
"store the original"
do
@dummy
.
save
assert
File
.
exists?
(
@dummy
.
avatar
.
path
)
end
should
"store the thumbnail"
do
@dummy
.
save
assert
File
.
exists?
(
@dummy
.
avatar
.
path
(
:thumbnail
))
...
...
@@ -167,7 +167,7 @@ class StorageTest < Test::Unit::TestCase
setup
do
AWS
::
S3
::
Base
.
stubs
(
:establish_connection!
)
rebuild_model
:storage
=>
:s3
,
:s3_credentials
=>
{},
:s3_credentials
=>
{},
:bucket
=>
"bucket"
,
:path
=>
":attachment/:basename.:extension"
,
:url
=>
":asset_host"
...
...
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