Sha256: bbc83143968c06fde44227a5dd64056c35413a0b19bd27c2e137645793d31bf6

Contents?: true

Size: 492 Bytes

Versions: 19

Compression:

Stored size: 492 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe 'Slicehost.get_backups' do
  describe 'success' do

    it "should return proper attributes" do
      actual = Slicehost[:slices].get_backups.body
      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)
      # backup['slice-id'].should be_an(Integer)
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fog-0.0.59 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.58 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.57 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.56 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.55 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.54 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.53 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.52 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.51 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.50 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.49 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.48 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.47 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.46 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.45 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.44 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.43 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.42 spec/slicehost/requests/get_backups_spec.rb
fog-0.0.41 spec/slicehost/requests/get_backups_spec.rb