2009-06-25 00:32:27 -07:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'S3.get_location' do
|
|
|
|
|
|
|
|
before(:all) do
|
2009-06-27 12:08:05 -07:00
|
|
|
s3.put_bucket('foggetlocation', :location_constraint => 'EU')
|
2009-06-25 00:32:27 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
after(:all) do
|
|
|
|
s3.delete_bucket('foggetlocation')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'should return proper attributes' do
|
2009-06-27 12:08:05 -07:00
|
|
|
actual = s3.get_bucket_location('foggetlocation')
|
2009-06-25 00:32:27 -07:00
|
|
|
actual.status.should == 200
|
2009-06-29 10:03:44 -07:00
|
|
|
actual.body[:location_constraint].should == 'EU'
|
2009-06-25 00:32:27 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|