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

23 lines
772 B
Ruby
Raw Normal View History

2009-05-19 02:06:49 -04:00
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') }
2009-05-19 02:06:49 -04:00
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)
2009-05-19 02:06:49 -04:00
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') }
2009-05-19 02:06:49 -04:00
end
end