2009-08-17 15:55:30 -07:00
|
|
|
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2009-07-30 23:13:48 -07:00
|
|
|
|
|
|
|
describe 'SimpleDB.delete_attributes' do
|
2009-08-19 20:32:57 -07:00
|
|
|
describe 'success' do
|
2009-07-30 23:13:48 -07:00
|
|
|
|
2009-08-19 20:32:57 -07:00
|
|
|
before(:each) do
|
|
|
|
sdb.create_domain('delete_attributes')
|
|
|
|
sdb.put_attributes('delete_attributes', 'foo', { :bar => :baz })
|
|
|
|
end
|
2009-07-30 23:13:48 -07:00
|
|
|
|
2009-08-19 20:32:57 -07:00
|
|
|
after(:each) do
|
|
|
|
sdb.delete_domain('delete_attributes')
|
|
|
|
end
|
2009-07-30 23:13:48 -07:00
|
|
|
|
2009-08-19 20:32:57 -07:00
|
|
|
it 'should return proper attributes from delete_attributes' do
|
|
|
|
actual = sdb.delete_attributes('delete_attributes', 'foo')
|
|
|
|
actual.body['RequestId'].should be_a(String)
|
|
|
|
actual.body['BoxUsage'].should be_a(Float)
|
|
|
|
end
|
2009-07-30 23:13:48 -07:00
|
|
|
|
2009-08-19 20:32:57 -07:00
|
|
|
end
|
2009-07-30 23:13:48 -07:00
|
|
|
end
|