Skip to content

Commit

Permalink
set api_key on all requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbredeche authored and alexmamonchik committed Sep 12, 2015
1 parent 7a0f4d4 commit dd8c987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stripe_mock/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def initialize
def mock_request(method, url, api_key, params={}, headers={}, api_base_url=nil)
return {} if method == :xtest

api_key ||= Stripe.api_key

# Ensure params hash has symbols as keys
params = Stripe::Util.symbolize_names(params)

Expand Down

0 comments on commit dd8c987

Please sign in to comment.