Sha256: 478f4a3bf48a2381e9be802c20f842a3cb7c67669ef39d2a9c5aca440d187205
Contents?: true
Size: 1.13 KB
Versions: 8
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require ::File.expand_path("../../test_helper", __dir__) module Stripe module Issuing class DisputeTest < Test::Unit::TestCase should "be creatable" do dispute = Stripe::Issuing::Dispute.create assert_requested :post, "#{Stripe.api_base}/v1/issuing/disputes" assert dispute.is_a?(Stripe::Issuing::Dispute) end should "be listable" do disputes = Stripe::Issuing::Dispute.list assert_requested :get, "#{Stripe.api_base}/v1/issuing/disputes" assert disputes.data.is_a?(Array) assert disputes.data[0].is_a?(Stripe::Issuing::Dispute) end should "be retrievable" do dispute = Stripe::Issuing::Dispute.retrieve("ich_123") assert_requested :get, "#{Stripe.api_base}/v1/issuing/disputes/ich_123" assert dispute.is_a?(Stripe::Issuing::Dispute) end should "be updateable" do dispute = Stripe::Issuing::Dispute.update("ich_123", {}) assert_requested :post, "#{Stripe.api_base}/v1/issuing/disputes/ich_123" assert dispute.is_a?(Stripe::Issuing::Dispute) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems