1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/aws/simpledb/delete_domain_spec.rb
2009-05-24 09:11:32 -07:00

23 lines
No EOL
772 B
Ruby

require File.dirname(__FILE__) + '/../../spec_helper'
describe 'SimpleDB.delete_domain' do
before(:all) do
sdb.create_domain('delete_domain')
end
it 'should include delete_domain in list_domains before delete_domain' do
lambda { sdb.list_domains }.should eventually { |expected| expected.body[:domains].should include('delete_domain') }
end
it 'should return proper attributes' do
actual = sdb.delete_domain('delete_domain')
actual.body[:request_id].should be_a(String)
actual.body[:box_usage].should be_a(Float)
end
it 'should not include delete_domain in list_domains after delete_domain' do
lambda { sdb.list_domains }.should_not eventually { |expected| expected.body[:domains].should_not include('delete_domain') }
end
end