Sha256: d0eef263a453c496d54154950ed48b87fc3dd19510e91d623f62a6b4cc1ca8bd
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' require 'td/client/spec_resources' require 'json' describe 'Account API' do include_context 'spec symbols' include_context 'common helper' let :api do API.new(nil) end describe 'show_account' do it 'returns account properties' do stub_api_request(:get, "/v3/account/show"). to_return(:body => {'account' => {'id' => 1, 'plan' => 0, 'storage_size' => 2, 'guaranteed_cores' => 3, 'maximum_cores' => 4, 'created_at' => '2014-12-14T17:24:00+0900'}}.to_json) expect(api.show_account).to eq([1, 0, 2, 3, 4, "2014-12-14T17:24:00+0900"]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
td-client-2.0.0 | spec/td/client/account_api_spec.rb |