Sha256: 0793938f83f0412bf87b0beb617e0ceef0a1d5a8b3ae084d9b9a53f5434dc165

Contents?: true

Size: 672 Bytes

Versions: 10

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("../../test_helper", __FILE__)

module Stripe
  class OrderReturnTest < Test::Unit::TestCase
    should "be listable" do
      order_returns = Stripe::OrderReturn.list
      assert_requested :get, "#{Stripe.api_base}/v1/order_returns"
      assert order_returns.data.is_a?(Array)
      assert order_returns.data[0].is_a?(Stripe::OrderReturn)
    end

    should "be retrievable" do
      order_return = Stripe::OrderReturn.retrieve("orret_123")
      assert_requested :get,
                       "#{Stripe.api_base}/v1/order_returns/orret_123"
      assert order_return.is_a?(Stripe::OrderReturn)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stripe-3.23.0 test/stripe/order_return_test.rb
stripe-3.22.0 test/stripe/order_return_test.rb
stripe-3.21.0 test/stripe/order_return_test.rb
stripe-3.20.0 test/stripe/order_return_test.rb
stripe-3.19.0 test/stripe/order_return_test.rb
stripe-3.18.0 test/stripe/order_return_test.rb
stripe-3.17.2 test/stripe/order_return_test.rb
stripe-3.17.1 test/stripe/order_return_test.rb
stripe-3.17.0 test/stripe/order_return_test.rb
stripe-3.15.0 test/stripe/order_return_test.rb