spec/paperclip/storage/s3_live_spec.rb in paperclip-5.1.0 vs spec/paperclip/storage/s3_live_spec.rb in paperclip-5.2.0

- old
+ new

@@ -8,12 +8,12 @@ storage: :s3, bucket: ENV["S3_BUCKET"], path: ":class/:attachment/:id/:style.:extension", s3_region: ENV["S3_REGION"], s3_credentials: { - aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], - aws_secre_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + access_key_id: ENV['AWS_ACCESS_KEY_ID'], + secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] } @file = File.new(fixture_file("5k.png")) end @@ -46,12 +46,12 @@ storage: :s3, bucket: ENV["S3_BUCKET"], path: ":class/:attachment/:id/:style.:extension", s3_region: ENV["S3_REGION"], s3_credentials: { - aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], - aws_secre_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + access_key_id: ENV['AWS_ACCESS_KEY_ID'], + secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] } @dummy = Dummy.new end @@ -66,12 +66,12 @@ storage: :s3, bucket: ENV["S3_BUCKET"], path: ":class/:attachment/:id/:style.:extension", s3_region: ENV["S3_REGION"], s3_credentials: { - aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], - aws_secre_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + access_key_id: ENV['AWS_ACCESS_KEY_ID'], + secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] } Dummy.delete_all @dummy = Dummy.new end @@ -107,13 +107,15 @@ before do rebuild_model styles: { thumb: "100x100", square: "32x32#" }, storage: :s3, bucket: ENV["S3_BUCKET"], s3_region: ENV["S3_REGION"], + url: ":s3_domain_url", + path: "/:class/:attachment/:id_partition/:style/:filename", s3_credentials: { - aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], - aws_secre_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + access_key_id: ENV['AWS_ACCESS_KEY_ID'], + secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] } Dummy.delete_all @file = File.new(fixture_file('spaced file.png'), 'rb') @dummy = Dummy.new @@ -150,11 +152,11 @@ storage: :s3, bucket: ENV["S3_BUCKET"], path: ":class/:attachment/:id/:style.:extension", s3_region: ENV["S3_REGION"], s3_credentials: { - aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'], - aws_secre_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + access_key_id: ENV['AWS_ACCESS_KEY_ID'], + secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] }, s3_server_side_encryption: "AES256" Dummy.delete_all @dummy = Dummy.new end