Sha256: 01633a866d95b7c2eaaee84f8b61a4619fc9d824287a80ff3813c37dbba2af0a
Contents?: true
Size: 469 Bytes
Versions: 1
Compression:
Stored size: 469 Bytes
Contents
require 'vultr' require 'minitest/autorun' describe Vultr::OS do let(:os) { Vultr::OS } it 'needs to verify list os url' do Vultr.api_key = ENV['VULTR_API_KEY'] assert_equal os._list, 'https://api.vultr.com/v1/os/list' r = os.list assert r.has_key? :status assert_equal r[:status], 200 assert r.has_key? :result r[:result].each do |k, v| assert v.has_key?('OSID') assert_equal k.to_i, v['OSID'].to_i end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vultr-0.2.0 | test/vultr/test_vultr_os.rb |