Skip to content

Commit

Permalink
Reset between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesprior committed Oct 8, 2020
1 parent a486119 commit c492fe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Empty file modified Rakefile 100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions test/price_builder_spec.rb
Expand Up @@ -374,12 +374,17 @@

describe 'when it is already present on stripe.com' do
before do
Stripe::Prices::GOLD.product_id = nil
Stripe::Price.stubs(:list).returns(Stripe::Price.construct_from(
data: [{
:lookup_key => 'gold',
:product => 'prod_XXXXXXXXXXXXXX'
}]))
end
after do
Stripe::Prices::GOLD.product_id = nil
end


it 'is a no-op on put!' do
Stripe::Price.expects(:create).never
Expand Down

0 comments on commit c492fe2

Please sign in to comment.