2009-11-26 21:04:49 -08:00
|
|
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
|
|
|
|
|
|
describe 'Slicehost.get_backups' do
|
|
|
|
describe 'success' do
|
|
|
|
|
|
|
|
it "should return proper attributes" do
|
2010-01-23 12:35:16 -08:00
|
|
|
actual = Slicehost[:slices].get_backups.body
|
2009-11-26 21:04:49 -08:00
|
|
|
actual['backups'].should be_an(Array)
|
|
|
|
backup = actual['backups'].first
|
|
|
|
# backup['date'].should be_a(String)
|
|
|
|
# backup['id'].should be_an(Integer)
|
|
|
|
# backup['name'].should be_an(String)
|
2009-11-28 13:16:00 -08:00
|
|
|
# backup['slice-id'].should be_an(Integer)
|
2009-11-26 21:04:49 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|