Sha256: 04a6b056f41eb22d1a981c310243a2ee367ab9e8cb1cc4cf5ec41b37533aed4a

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

Stored size: 640 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.all
      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

5 entries across 5 versions & 1 rubygems

Version Path
stripe-1.28.1 test/stripe/sku_test.rb
stripe-1.28.0 test/stripe/sku_test.rb
stripe-1.27.2 test/stripe/sku_test.rb
stripe-1.27.1 test/stripe/sku_test.rb
stripe-1.27.0 test/stripe/sku_test.rb