Sha256: 282429342ae844708a04a94cafc1e60e508c7ca18baf1b4fbeb9753600c9ad87

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require "vultr"
require "minitest/autorun"

describe Vultr::Region do

  let(:region) { Vultr::Region }

  it "needs to verify list region url" do
   url = region._list

   url.must_equal "https://api.vultr.com/v1/regions/list"
  end

  it "needs to verify availability region url" do
    DCID = "1234"
    url = region._availability("DCID" => "1234")

    url.must_equal "https://api.vultr.com/v1/regions/availability?DCID=#{DCID}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vultr-0.1.1 test/vultr/test_vultr_region.rb