2009-06-07 04:55:52 -04:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'S3.get_request_payment' do
|
|
|
|
|
2009-06-27 15:08:05 -04:00
|
|
|
before(:all) do
|
|
|
|
s3.put_bucket('foggetrequestpayment')
|
|
|
|
end
|
|
|
|
|
|
|
|
after(:all) do
|
|
|
|
s3.delete_bucket('foggetrequestpayment')
|
|
|
|
end
|
|
|
|
|
2009-06-07 04:55:52 -04:00
|
|
|
it 'should return proper attributes' do
|
2009-06-27 15:08:05 -04:00
|
|
|
actual = s3.get_request_payment('foggetrequestpayment')
|
|
|
|
actual.status.should == 200
|
2009-06-29 13:03:44 -04:00
|
|
|
actual.body[:payer].should == 'BucketOwner'
|
2009-06-07 04:55:52 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|