Commit 9ddfc6a1 by Prem Sichanugrist

Add more style to the integration test

parent 8b778b30
...@@ -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:
""" """
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment