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
88b616e1
Commit
88b616e1
authored
Jul 21, 2010
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for the image in the basic scenario.
parent
9d225cf6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
features/rails.feature
+1
-1
features/step_definitions/html_steps.rb
+3
-0
features/support/rails.rb
+0
-2
No files found.
features/rails.feature
View file @
88b616e1
...
...
@@ -30,4 +30,4 @@ Feature: Running paperclip in a Rails app
And
I attach the file
"test/fixtures/5k.png"
to
"user_avatar"
And
I press
"Submit"
Then I should see "Name
:
something"
And
I s
ave and open the page
And
I s
hould see an image with a path of
"/system/avatars/1/original/5k.png"
features/step_definitions/html_steps.rb
0 → 100644
View file @
88b616e1
Then
%r{I should see an image with a path of "([^"]*)"}
do
|
path
|
page
.
should
have_css
(
"img[src^='
#{
path
}
']"
)
end
features/support/rails.rb
View file @
88b616e1
...
...
@@ -4,7 +4,5 @@ APP_NAME = 'testapp'.freeze
CUC_RAILS_ROOT
=
File
.
join
(
TEMP_ROOT
,
APP_NAME
).
freeze
Before
do
FileUtils
.
rm_rf
(
TEMP_ROOT
)
FileUtils
.
mkdir_p
(
CUC_RAILS_ROOT
)
Dir
.
chdir
(
PROJECT_ROOT
)
end
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