Sha256: e8e2074cc47517d3a16afb5f2dd76b0067a2843f6cfa47ea55bdca58a42404b5
Contents?: true
Size: 676 Bytes
Versions: 6
Compression:
Stored size: 676 Bytes
Contents
require 'test/test_helper' class VultrAppTest < Minitest::Test # Called before every test method runs. Can be used # to set up fixture information. def setup Vultr.api_key = ENV['VULTR_API_KEY'] end def test_app_list_url app_list_url = 'https://api.vultr.com/v1/app/list' assert_equal app_list_url, Vultr::App._list end def test_app_list_response r = Vultr::App.list assert r.has_key? :status assert_equal r[:status], 200 assert r.has_key? :result assert_instance_of Hash, r[:result] end # Called after every test method runs. Can be used to tear # down fixture information. def teardown # Do nothing end end
Version data entries
6 entries across 6 versions & 1 rubygems