require 'test_helper'

class VultrIsoTest < Minitest::Test

  def setup
    Vultr.api_key = ENV['VULTR_API_KEY']
  end

  def test_iso_list_response
    r = Vultr::ISO.list

    assert r.has_key? :status
    assert r[:status], 200

    assert r.has_key? :result

    if r[:result].empty?
      assert_instance_of Array, r[:result]
    else
      assert_instance_of Hash, r[:result]
    end
  end

  def teardown
    # Do nothing
  end
end
