Skip to content

Commit

Permalink
Merge pull request #626 from stripe/jkakar/fix-product-issues
Browse files Browse the repository at this point in the history
Upgrade to stripe-mock 0.8.0.
  • Loading branch information
jkakar-stripe committed Feb 16, 2018
2 parents fafd449 + 74dfbe5 commit 16704d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -16,7 +16,7 @@ sudo: false

env:
global:
- STRIPE_MOCK_VERSION=0.4.0
- STRIPE_MOCK_VERSION=0.8.0

cache:
directories:
Expand Down
6 changes: 4 additions & 2 deletions test/stripe/product_test.rb
Expand Up @@ -16,10 +16,12 @@ class ProductTest < Test::Unit::TestCase
end

should "be creatable" do
_ = Stripe::Product.create(
name: "My Product"
product = Stripe::Product.create(
name: "My Product",
type: "good"
)
assert_requested :post, "#{Stripe.api_base}/v1/products"
assert product.is_a?(Stripe::Product)
end

should "be saveable" do
Expand Down

0 comments on commit 16704d9

Please sign in to comment.