fog--fog/spec/aws/s3/get_request_payment_spec.rb

20 lines
452 B
Ruby
Raw Normal View History

2009-06-07 08:55:52 +00:00
require File.dirname(__FILE__) + '/../../spec_helper'
describe 'S3.get_request_payment' do
before(:all) do
@s3 = Fog::AWS::S3.gen
2009-08-08 21:46:13 +00:00
@s3.put_bucket('foggetrequestpayment')
end
after(:all) do
2009-08-08 21:46:13 +00:00
@s3.delete_bucket('foggetrequestpayment')
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')
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