Permalink
Browse files

Fix spacing problem

  • Loading branch information...
1 parent 774cee1 commit 64549cb4f51f247e1ca3026ac6b7395717b1d2ab @sikachu sikachu committed Oct 21, 2011
Showing with 20 additions and 20 deletions.
  1. +20 −20 test/storage/s3_test.rb
View
@@ -464,26 +464,26 @@ class AWS::S3::NoSuchBucket < AWS::S3::ResponseError
end
context "with S3 credentials supplied as Pathname" do
- setup do
- ENV['S3_KEY'] = 'pathname_key'
- ENV['S3_BUCKET'] = 'pathname_bucket'
- ENV['S3_SECRET'] = 'pathname_secret'
-
- rails_env('test')
-
- rebuild_model :storage => :s3,
- :s3_credentials => Pathname.new(File.join(File.dirname(__FILE__))).join("../fixtures/s3.yml")
-
- Dummy.delete_all
- @dummy = Dummy.new
- @dummy.avatar.send(:establish_connection!)
- end
-
- should "parse the credentials" do
- assert_equal 'pathname_bucket', @dummy.avatar.bucket_name
- assert_equal 'pathname_key', AWS::S3::Base.connection.options[:access_key_id]
- assert_equal 'pathname_secret', AWS::S3::Base.connection.options[:secret_access_key]
- end
+ setup do
+ ENV['S3_KEY'] = 'pathname_key'
+ ENV['S3_BUCKET'] = 'pathname_bucket'
+ ENV['S3_SECRET'] = 'pathname_secret'
+
+ rails_env('test')
+
+ rebuild_model :storage => :s3,
+ :s3_credentials => Pathname.new(File.join(File.dirname(__FILE__))).join("../fixtures/s3.yml")
+
+ Dummy.delete_all
+ @dummy = Dummy.new
+ @dummy.avatar.send(:establish_connection!)
+ end
+
+ should "parse the credentials" do
+ assert_equal 'pathname_bucket', @dummy.avatar.bucket_name
+ assert_equal 'pathname_key', AWS::S3::Base.connection.options[:access_key_id]
+ assert_equal 'pathname_secret', AWS::S3::Base.connection.options[:secret_access_key]
+ end
end
context "with S3 credentials in a YAML file" do

0 comments on commit 64549cb

Please sign in to comment.