2009-06-07 08:55:52 +00:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'S3.get_request_payment' do
|
|
|
|
|
2009-06-27 19:08:05 +00:00
|
|
|
before(:all) do
|
2009-08-12 04:40:59 +00:00
|
|
|
@s3 = Fog::AWS::S3.gen
|
2009-08-08 21:46:13 +00:00
|
|
|
@s3.put_bucket('foggetrequestpayment')
|
2009-06-27 19:08:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
after(:all) do
|
2009-08-08 21:46:13 +00:00
|
|
|
@s3.delete_bucket('foggetrequestpayment')
|
2009-06-27 19:08:05 +00:00
|
|
|
end
|
|
|
|
|
2009-06-07 08:55:52 +00:00
|
|
|
it 'should return proper attributes' do
|
2009-08-08 21:46:13 +00:00
|
|
|
actual = @s3.get_request_payment('foggetrequestpayment')
|
2009-06-27 19:08:05 +00:00
|
|
|
actual.status.should == 200
|
2009-07-30 02:50:51 +00:00
|
|
|
actual.body['Payer'].should == 'BucketOwner'
|
2009-06-07 08:55:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|