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
9ddfc6a1
Commit
9ddfc6a1
authored
Apr 24, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more style to the integration test
parent
8b778b30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
features/basic_integration.feature
+4
-2
features/support/fakeweb.rb
+7
-0
No files found.
features/basic_integration.feature
View file @
9ddfc6a1
...
@@ -12,7 +12,8 @@ Feature: Rails integration
...
@@ -12,7 +12,8 @@ Feature: Rails integration
Given I add this snippet to the User model
:
Given I add this snippet to the User model
:
"""
"""
attr_accessible :name, :attachment
attr_accessible :name, :attachment
has_attached_file :attachment, :url => "/system/:attachment/:style/:filename"
has_attached_file :attachment, :url => "/system/:attachment/:style/:filename",
:styles => { :square => "100x100#" }
"""
"""
And
I start the rails application
And
I start the rails application
When
I go to the new user page
When
I go to the new user page
...
@@ -30,7 +31,8 @@ Feature: Rails integration
...
@@ -30,7 +31,8 @@ Feature: Rails integration
has_attached_file :attachment,
has_attached_file :attachment,
:storage => :s3,
:storage => :s3,
:path => "/:attachment/:style/:filename",
:path => "/:attachment/:style/:filename",
:s3_credentials => Rails.root.join("config/s3.yml")
:s3_credentials => Rails.root.join("config/s3.yml"),
:styles => { :square => "100x100#" }
"""
"""
And I write to "config/s3.yml" with
:
And I write to "config/s3.yml" with
:
"""
"""
...
...
features/support/fakeweb.rb
View file @
9ddfc6a1
require
'fake_web'
require
'fake_web'
FakeWeb
.
allow_net_connect
=
false
FakeWeb
.
allow_net_connect
=
false
module
FakeWeb
class
StubSocket
def
read_timeout
=
(
ignored
)
end
end
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