Sha256: 4af8d2c3f6437cb1f85dcf9a14686156822bb0b8680234758f43b81c000efaff

Contents?: true

Size: 691 Bytes

Versions: 20

Compression:

Stored size: 691 Bytes

Contents

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

module Stripe
  class OrderReturnTest < Test::Unit::TestCase
    FIXTURE = API_FIXTURES.fetch(:order_return)

    should "be listable" do
      order_returns = Stripe::OrderReturn.list
      assert_requested :get, "#{Stripe.api_base}/v1/order_returns"
      assert order_returns.data.kind_of?(Array)
      assert order_returns.data[0].kind_of?(Stripe::OrderReturn)
    end

    should "be retrievable" do
      order_return = Stripe::OrderReturn.retrieve(FIXTURE[:id])
      assert_requested :get,
        "#{Stripe.api_base}/v1/order_returns/#{FIXTURE[:id]}"
      assert order_return.kind_of?(Stripe::OrderReturn)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
stripe-3.0.3 test/stripe/order_return_test.rb
stripe-3.0.1 test/stripe/order_return_test.rb
stripe-3.0.0 test/stripe/order_return_test.rb
stripe-2.12.0 test/stripe/order_return_test.rb
stripe-2.11.0 test/stripe/order_return_test.rb
stripe-2.10.0 test/stripe/order_return_test.rb
stripe-2.9.0 test/stripe/order_return_test.rb
stripe-2.8.0 test/stripe/order_return_test.rb
stripe-2.7.0 test/stripe/order_return_test.rb
stripe-2.6.0 test/stripe/order_return_test.rb
stripe-2.5.0 test/stripe/order_return_test.rb
stripe-2.4.0 test/stripe/order_return_test.rb
stripe-2.3.0 test/stripe/order_return_test.rb
stripe-2.2.1 test/stripe/order_return_test.rb
stripe-2.2.0 test/stripe/order_return_test.rb
stripe-2.1.0 test/stripe/order_return_test.rb
stripe-2.0.3 test/stripe/order_return_test.rb
stripe-2.0.2 test/stripe/order_return_test.rb
stripe-2.0.1 test/stripe/order_return_test.rb
stripe-2.0.0 test/stripe/order_return_test.rb