Sha256: e3522c588304bcbde0dd8972dd9f58c30251a9cfee08bf5b52d9f6502a7a81ea

Contents?: true

Size: 641 Bytes

Versions: 11

Compression:

Stored size: 641 Bytes

Contents

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

module Stripe
  class SKUTest < Test::Unit::TestCase
    should "SKUs should be listable" do
      @mock.expects(:get).once.
        returns(make_response(make_sku_array("test_product")))
      skus = Stripe::SKU.list
      assert skus.data.kind_of? Array
      skus.each do |sku|
        assert sku.kind_of?(Stripe::SKU)
      end
    end

    should "SKUs should not be deletable" do
      assert_raises NoMethodError do
        @mock.expects(:get).once.returns(make_response(make_sku))
        p = Stripe::SKU.retrieve("test_product")
        p.delete
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
stripe-1.33.1 test/stripe/sku_test.rb
stripe-1.33.0 test/stripe/sku_test.rb
stripe-1.32.1 test/stripe/sku_test.rb
stripe-1.32.0 test/stripe/sku_test.rb
stripe-1.31.0 test/stripe/sku_test.rb
stripe-1.30.3 test/stripe/sku_test.rb
stripe-1.30.2 test/stripe/sku_test.rb
stripe-1.30.1 test/stripe/sku_test.rb
stripe-1.30.0 test/stripe/sku_test.rb
stripe-1.29.1 test/stripe/sku_test.rb
stripe-1.29.0 test/stripe/sku_test.rb