Sha256: 035f8823d11d587d53ebca5d10e82259194aa4ecdcda4ab3bfc41bd2697ddf73
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true require "test_helper" class ApplicationsResourceTest < Minitest::Test def test_list stub = stub_request("applications", response: stub_response(fixture: "applications/list")) client = Vultr::Client.new(api_key: "fake", adapter: :test, stubs: stub) applications = client.applications.list assert_equal Vultr::Collection, applications.class assert_equal Vultr::Application, applications.data.first.class assert_equal 2, applications.total end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vultr-2.0.0 | test/vultr/resources/applications_test.rb |
vultr-1.0.0 | test/vultr/resources/applications_test.rb |