Sha256: e0477e513294ad04e997737ee6370146abeaa6f1e677954881bc43721cfdca08

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

require 'test_helper'

class VultrSnapshotTest < Minitest::Test

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

  def test_snapshot_list_response
    r = Vultr::Snapshot.list

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

    assert r.has_key? :result
    assert_instance_of Array, r[:result]
  end

  def test_snapshot_create_response
    # TODO
  end

  def test_snapshot_destroy_response
    # TODO
  end

  def teardown
    # Do nothing
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vultr-0.4.3 test/vultr/vultr_snapshot_test.rb
vultr-0.4.2 test/vultr/vultr_snapshot_test.rb
vultr-0.4.1 test/vultr/vultr_snapshot_test.rb