Sha256: 739f32e3fda3dc32024a639e6be4dc005b7f859bbb2e2fa78563b73bfe8e8c82
Contents?: true
Size: 505 Bytes
Versions: 6
Compression:
Stored size: 505 Bytes
Contents
require 'test/test_helper' class VultrPlanTest < Minitest::Test def setup Vultr.api_key = ENV['VULTR_API_KEY'] end def test_plan_list_url plan_list_url = 'https://api.vultr.com/v1/plans/list' assert_equal plan_list_url, Vultr::Plan._list end def test_plan_list_response r = Vultr::Plan.list assert r.has_key? :status assert_equal r[:status], 200 assert r.has_key? :result assert_instance_of Hash, r[:result] end def teardown # Do nothing end end
Version data entries
6 entries across 6 versions & 1 rubygems