Sha256: 15f7d8412ed003c4cfabf93dab6aec7e68719f1cfe829ded2f45c2b06c40724d

Contents?: true

Size: 511 Bytes

Versions: 7

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

describe EY::CloudClient::Account do
  before do
    FakeWeb.allow_net_connect = true
  end

  describe ".all" do
    it "returns all accounts" do
      api = scenario_cloud_client "Multiple Ambiguous Accounts"
      accounts = EY::CloudClient::Account.all(api)
      accounts.should have(2).account
      expect(accounts.sort).to eq([
        accounts.find { |account| account.name == 'account_2' },
        accounts.find { |account| account.name == 'main' },
      ])
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
engineyard-cloud-client-2.1.1 spec/engineyard-cloud-client/integration/account_spec.rb
engineyard-cloud-client-2.1.0 spec/engineyard-cloud-client/integration/account_spec.rb
engineyard-cloud-client-1.0.16 spec/engineyard-cloud-client/integration/account_spec.rb
engineyard-cloud-client-2.0.1 spec/engineyard-cloud-client/integration/account_spec.rb
engineyard-cloud-client-2.0.0 spec/engineyard-cloud-client/integration/account_spec.rb
engineyard-cloud-client-1.0.15 spec/engineyard-cloud-client/integration/account_spec.rb
engineyard-cloud-client-1.0.14 spec/engineyard-cloud-client/integration/account_spec.rb