Sha256: 2c593f0e922cb768e717b6f322cb8339559c143b92530d9959fe0a85de9e74db

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

require 'spec_helper'

describe "Smartdc::Api::Datacenters" do
  describe ".find" do
    it "should return some datacenters" do
      client.datacenters.find.count.should > 0
    end
  end

  describe ".read" do
    it "should return a datacenter" do
      datacenters = client.datacenters.find
      client.datacenters(datacenters.first[0]).read[:message].should match(/#{datacenters.first[0]}/)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smartdc-0.4.0 spec/smartdc/api/datacenters_spec.rb
smartdc-0.3.0 spec/smartdc/api/datacenters_spec.rb