Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add more style to the integration test

  • Loading branch information...
commit 9ddfc6a1d5c7e7538c058ff8befe387431736d60 1 parent 8b778b3
@sikachu sikachu authored
Showing with 11 additions and 2 deletions.
  1. +4 −2 features/basic_integration.feature
  2. +7 −0 features/support/fakeweb.rb
View
6 features/basic_integration.feature
@@ -12,7 +12,8 @@ Feature: Rails integration
Given I add this snippet to the User model:
"""
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
When I go to the new user page
@@ -30,7 +31,8 @@ Feature: Rails integration
has_attached_file :attachment,
:storage => :s3,
: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:
"""
View
7 features/support/fakeweb.rb
@@ -1,3 +1,10 @@
require 'fake_web'
FakeWeb.allow_net_connect = false
+
+module FakeWeb
+ class StubSocket
+ def read_timeout=(ignored)
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.