2009-05-19 02:06:49 -04:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'SimpleDB.delete_domain' do
|
|
|
|
|
|
|
|
before(:all) do
|
2009-07-15 14:53:32 -04:00
|
|
|
@domain_name = "fog_domain_#{Time.now.to_i}"
|
2009-05-19 02:06:49 -04:00
|
|
|
end
|
|
|
|
|
2009-07-15 14:53:32 -04:00
|
|
|
before(:all) do
|
|
|
|
sdb.create_domain(@domain_name)
|
2009-05-19 02:06:49 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'should return proper attributes' do
|
2009-07-15 14:53:32 -04:00
|
|
|
actual = sdb.delete_domain(@domain_name)
|
2009-05-24 12:11:32 -04:00
|
|
|
actual.body[:request_id].should be_a(String)
|
|
|
|
actual.body[:box_usage].should be_a(Float)
|
2009-05-19 02:06:49 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|