Sha256: 748a834355c7bb66b5bc180243a0951ee467ccaaa11986fedf541518823bc9b8

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vultr-0.4.3 test/vultr/vultr_iso_test.rb