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