2009-07-30 23:13:48 -07:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'SimpleDB.delete_attributes' do
|
|
|
|
|
|
|
|
before(:all) do
|
2009-08-11 22:18:27 -07:00
|
|
|
@sdb = Fog::AWS::SimpleDB.gen
|
|
|
|
@sdb.create_domain('delete_attributes')
|
|
|
|
@sdb.put_attributes('delete_attributes', 'foo', { :bar => :baz })
|
2009-07-30 23:13:48 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
after(:all) do
|
2009-08-11 22:18:27 -07:00
|
|
|
@sdb.delete_domain('delete_attributes')
|
2009-07-30 23:13:48 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'should return proper attributes from delete_attributes' do
|
2009-08-11 22:18:27 -07:00
|
|
|
actual = @sdb.delete_attributes('delete_attributes', 'foo')
|
2009-07-30 23:13:48 -07:00
|
|
|
actual.body['RequestId'].should be_a(String)
|
|
|
|
actual.body['BoxUsage'].should be_a(Float)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|