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
1a9fb2cc
Commit
1a9fb2cc
authored
Mar 05, 2014
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move fixtures to spec/support/fixtures
parent
c9e3df3f
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
6 additions
and
6 deletions
+6
-6
features/basic_integration.feature
+5
-5
features/step_definitions/attachment_steps.rb
+1
-1
spec/support/fixtures/12k.png
+0
-0
spec/support/fixtures/50x50.png
+0
-0
spec/support/fixtures/5k.png
+0
-0
spec/support/fixtures/animated
+0
-0
spec/support/fixtures/animated.gif
+0
-0
spec/support/fixtures/animated.unknown
+0
-0
spec/support/fixtures/bad.png
+0
-0
spec/support/fixtures/empty.html
+0
-0
spec/support/fixtures/fog.yml
+0
-0
spec/support/fixtures/rotated.jpg
+0
-0
spec/support/fixtures/s3.yml
+0
-0
spec/support/fixtures/spaced file.png
+0
-0
spec/support/fixtures/text.txt
+0
-0
spec/support/fixtures/twopage.pdf
+0
-0
spec/support/fixtures/uppercase.PNG
+0
-0
No files found.
features/basic_integration.feature
View file @
1a9fb2cc
...
...
@@ -18,11 +18,11 @@ Feature: Rails integration
And
I start the rails application
When
I go to the new user page
And
I fill in
"Name"
with
"something"
And
I attach the file
"spec/fixtures/5k.png"
to
"Attachment"
And
I attach the file
"spec/
support/
fixtures/5k.png"
to
"Attachment"
And
I press
"Submit"
Then I should see "Name
:
something"
And
I should see an image with a path of
"/paperclip/custom/attachments/original/5k.png"
And
the file at
"/paperclip/custom/attachments/original/5k.png"
should be the same as
"spec/fixtures/5k.png"
And
the file at
"/paperclip/custom/attachments/original/5k.png"
should be the same as
"spec/
support/
fixtures/5k.png"
Scenario
:
Filesystem integration test
Given I attach
:
attachment with
:
...
...
@@ -32,11 +32,11 @@ Feature: Rails integration
And
I start the rails application
When
I go to the new user page
And
I fill in
"Name"
with
"something"
And
I attach the file
"spec/fixtures/5k.png"
to
"Attachment"
And
I attach the file
"spec/
support/
fixtures/5k.png"
to
"Attachment"
And
I press
"Submit"
Then I should see "Name
:
something"
And
I should see an image with a path of
"/system/attachments/original/5k.png"
And
the file at
"/system/attachments/original/5k.png"
should be the same as
"spec/fixtures/5k.png"
And
the file at
"/system/attachments/original/5k.png"
should be the same as
"spec/
support/
fixtures/5k.png"
Scenario
:
S3 Integration test
Given I attach
:
attachment with
:
...
...
@@ -55,7 +55,7 @@ Feature: Rails integration
And
I start the rails application
When
I go to the new user page
And
I fill in
"Name"
with
"something"
And
I attach the file
"spec/fixtures/5k.png"
to
"Attachment"
on S3
And
I attach the file
"spec/
support/
fixtures/5k.png"
to
"Attachment"
on S3
And
I press
"Submit"
Then I should see "Name
:
something"
And I should see an image with a path of "http
:
//s3.amazonaws.com/paperclip/attachments/original/5k.png"
...
...
features/step_definitions/attachment_steps.rb
View file @
1a9fb2cc
module
AttachmentHelpers
def
fixture_path
(
filename
)
File
.
expand_path
(
"
#{
PROJECT_ROOT
}
/spec/fixtures/
#{
filename
}
"
)
File
.
expand_path
(
"
#{
PROJECT_ROOT
}
/spec/
support/
fixtures/
#{
filename
}
"
)
end
def
attachment_path
(
filename
)
...
...
spec/fixtures/12k.png
→
spec/
support/
fixtures/12k.png
View file @
1a9fb2cc
File moved
spec/fixtures/50x50.png
→
spec/
support/
fixtures/50x50.png
View file @
1a9fb2cc
File moved
spec/fixtures/5k.png
→
spec/
support/
fixtures/5k.png
View file @
1a9fb2cc
File moved
spec/fixtures/animated
→
spec/
support/
fixtures/animated
View file @
1a9fb2cc
File moved
spec/fixtures/animated.gif
→
spec/
support/
fixtures/animated.gif
View file @
1a9fb2cc
File moved
spec/fixtures/animated.unknown
→
spec/
support/
fixtures/animated.unknown
View file @
1a9fb2cc
File moved
spec/fixtures/bad.png
→
spec/
support/
fixtures/bad.png
View file @
1a9fb2cc
File moved
spec/fixtures/empty.html
→
spec/
support/
fixtures/empty.html
View file @
1a9fb2cc
File moved
spec/fixtures/fog.yml
→
spec/
support/
fixtures/fog.yml
View file @
1a9fb2cc
File moved
spec/fixtures/rotated.jpg
→
spec/
support/
fixtures/rotated.jpg
View file @
1a9fb2cc
File moved
spec/fixtures/s3.yml
→
spec/
support/
fixtures/s3.yml
View file @
1a9fb2cc
File moved
spec/fixtures/spaced file.png
→
spec/
support/
fixtures/spaced file.png
View file @
1a9fb2cc
File moved
spec/fixtures/text.txt
→
spec/
support/
fixtures/text.txt
View file @
1a9fb2cc
File moved
spec/fixtures/twopage.pdf
→
spec/
support/
fixtures/twopage.pdf
View file @
1a9fb2cc
File moved
spec/fixtures/uppercase.PNG
→
spec/
support/
fixtures/uppercase.PNG
View file @
1a9fb2cc
File moved
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