Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove whitespaces

  • Loading branch information...
commit b2cac53d8b4912eb9f2e485300899b5293c45782 1 parent d18d814
@sikachu sikachu authored
Showing with 11 additions and 11 deletions.
  1. +11 −11 test/storage_test.rb
View
22 test/storage_test.rb
@@ -362,7 +362,7 @@ def rails_env(env)
File.stubs(:exist?).returns(true)
Paperclip::Tempfile.any_instance.expects(:close).at_least_once()
Paperclip::Tempfile.any_instance.expects(:unlink).at_least_once()
-
+
@dummy.save!
end
@@ -494,7 +494,7 @@ class AWS::S3::NoSuchBucket < AWS::S3::ResponseError
assert_equal 'env_secret', AWS::S3::Base.connection.options[:secret_access_key]
end
end
-
+
context "S3 Permissions" do
context "defaults to public-read" do
setup do
@@ -545,16 +545,16 @@ class AWS::S3::NoSuchBucket < AWS::S3::ResponseError
},
:s3_permissions => 'private'
end
-
+
context "when assigned" do
setup do
@file = File.new(File.join(File.dirname(__FILE__), 'fixtures', '5k.png'), 'rb')
@dummy = Dummy.new
@dummy.avatar = @file
end
-
+
teardown { @file.close }
-
+
context "and saved" do
setup do
AWS::S3::Base.stubs(:establish_connection!)
@@ -565,14 +565,14 @@ class AWS::S3::NoSuchBucket < AWS::S3::ResponseError
:access => 'private')
@dummy.save
end
-
+
should "succeed" do
assert true
end
end
end
end
-
+
context "hash permissions set" do
setup do
rebuild_model :storage => :s3,
@@ -590,16 +590,16 @@ class AWS::S3::NoSuchBucket < AWS::S3::ResponseError
:thumb => 'public-read'
}
end
-
+
context "when assigned" do
setup do
@file = File.new(File.join(File.dirname(__FILE__), 'fixtures', '5k.png'), 'rb')
@dummy = Dummy.new
@dummy.avatar = @file
end
-
+
teardown { @file.close }
-
+
context "and saved" do
setup do
AWS::S3::Base.stubs(:establish_connection!)
@@ -612,7 +612,7 @@ class AWS::S3::NoSuchBucket < AWS::S3::ResponseError
end
@dummy.save
end
-
+
should "succeed" do
assert true
end
Please sign in to comment.
Something went wrong with that request. Please try again.