Sha256: 519aee54c049ff8e53cb71cc1492585e74617ab4ab1b6e3b2750d36191c8cbee
Contents?: true
Size: 885 Bytes
Versions: 8
Compression:
Stored size: 885 Bytes
Contents
Shindo.tests('Linode::Compute | linodeplans requests', ['linode']) do @linodeplans_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'AVAIL' => { '2' => Integer, '3' => Integer, '4' => Integer, '6' => Integer, '7' => Integer }, 'DISK' => Integer, 'PLANID' => Integer, 'PRICE' => Float, 'RAM' => Integer, 'LABEL' => String, 'XFER' => Integer }] }) tests('success') do @linodeplan_id = nil tests('#avail_linodeplans').formats(@linodeplans_format) do data = Linode[:compute].avail_linodeplans.body @linodeplan_id = data['DATA'].first['PLANID'] data end tests("#avail_linodeplans(#{@linodeplan_id})").formats(@linodeplans_format) do Linode[:compute].avail_linodeplans(@linodeplan_id).body end end end
Version data entries
8 entries across 8 versions & 1 rubygems