Sha256: d46d677624ccde64b738ea11397db36afb98755ddc744aeb3339064364e57e80

Contents?: true

Size: 546 Bytes

Versions: 6

Compression:

Stored size: 546 Bytes

Contents

require 'test/test_helper'

class VultrBackupTest < Minitest::Test

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

  def test_backup_list_url
    backup_list_url = 'https://api.vultr.com/v1/backup/list?api_key=' + Vultr.api_key
    assert_equal backup_list_url, Vultr::Backup._list
  end

  def test_backup_list_response
    r = Vultr::Backup.list

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

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

  def teardown
    # Do nothing
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vultr-0.3.5 test/vultr/vultr_backup_test.rb
vultr-0.3.4 test/vultr/vultr_backup_test.rb
vultr-0.3.3 test/vultr/vultr_backup_test.rb
vultr-0.3.2 test/vultr/vultr_backup_test.rb
vultr-0.3.1 test/vultr/vultr_backup_test.rb
vultr-0.2.1 test/vultr/vultr_backup_test.rb