Commit b2cac53d by Prem Sichanugrist

Remove whitespaces

parent d18d814d
...@@ -362,7 +362,7 @@ class StorageTest < Test::Unit::TestCase ...@@ -362,7 +362,7 @@ class StorageTest < Test::Unit::TestCase
File.stubs(:exist?).returns(true) File.stubs(:exist?).returns(true)
Paperclip::Tempfile.any_instance.expects(:close).at_least_once() Paperclip::Tempfile.any_instance.expects(:close).at_least_once()
Paperclip::Tempfile.any_instance.expects(:unlink).at_least_once() Paperclip::Tempfile.any_instance.expects(:unlink).at_least_once()
@dummy.save! @dummy.save!
end end
...@@ -494,7 +494,7 @@ class StorageTest < Test::Unit::TestCase ...@@ -494,7 +494,7 @@ class StorageTest < Test::Unit::TestCase
assert_equal 'env_secret', AWS::S3::Base.connection.options[:secret_access_key] assert_equal 'env_secret', AWS::S3::Base.connection.options[:secret_access_key]
end end
end end
context "S3 Permissions" do context "S3 Permissions" do
context "defaults to public-read" do context "defaults to public-read" do
setup do setup do
...@@ -545,16 +545,16 @@ class StorageTest < Test::Unit::TestCase ...@@ -545,16 +545,16 @@ class StorageTest < Test::Unit::TestCase
}, },
:s3_permissions => 'private' :s3_permissions => 'private'
end end
context "when assigned" do context "when assigned" do
setup do setup do
@file = File.new(File.join(File.dirname(__FILE__), 'fixtures', '5k.png'), 'rb') @file = File.new(File.join(File.dirname(__FILE__), 'fixtures', '5k.png'), 'rb')
@dummy = Dummy.new @dummy = Dummy.new
@dummy.avatar = @file @dummy.avatar = @file
end end
teardown { @file.close } teardown { @file.close }
context "and saved" do context "and saved" do
setup do setup do
AWS::S3::Base.stubs(:establish_connection!) AWS::S3::Base.stubs(:establish_connection!)
...@@ -565,14 +565,14 @@ class StorageTest < Test::Unit::TestCase ...@@ -565,14 +565,14 @@ class StorageTest < Test::Unit::TestCase
:access => 'private') :access => 'private')
@dummy.save @dummy.save
end end
should "succeed" do should "succeed" do
assert true assert true
end end
end end
end end
end end
context "hash permissions set" do context "hash permissions set" do
setup do setup do
rebuild_model :storage => :s3, rebuild_model :storage => :s3,
...@@ -590,16 +590,16 @@ class StorageTest < Test::Unit::TestCase ...@@ -590,16 +590,16 @@ class StorageTest < Test::Unit::TestCase
:thumb => 'public-read' :thumb => 'public-read'
} }
end end
context "when assigned" do context "when assigned" do
setup do setup do
@file = File.new(File.join(File.dirname(__FILE__), 'fixtures', '5k.png'), 'rb') @file = File.new(File.join(File.dirname(__FILE__), 'fixtures', '5k.png'), 'rb')
@dummy = Dummy.new @dummy = Dummy.new
@dummy.avatar = @file @dummy.avatar = @file
end end
teardown { @file.close } teardown { @file.close }
context "and saved" do context "and saved" do
setup do setup do
AWS::S3::Base.stubs(:establish_connection!) AWS::S3::Base.stubs(:establish_connection!)
...@@ -612,7 +612,7 @@ class StorageTest < Test::Unit::TestCase ...@@ -612,7 +612,7 @@ class StorageTest < Test::Unit::TestCase
end end
@dummy.save @dummy.save
end end
should "succeed" do should "succeed" do
assert true assert true
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