integrallis / stripe_event

Stripe webhook integration for Rails applications.
https://rubygems.org/gems/stripe_event
MIT License
844 stars 104 forks source link

401 Unauthorized when testing with rspec #21

Closed kavinderd closed 11 years ago

kavinderd commented 11 years ago

Hi, I am trying to test the webhooks through rspec. I make the following request:

post "/stripe", :id => "evt_customer_subscription_deleted"

And the response returns a 401 unauthorized, event though the stripe initialize is listening to this event and I have had this successfully deployed for quite a while.

invisiblefunnel commented 11 years ago

Are you stubbing out the http request using Webmock or a similar library?