Mocking 'checkout.session.completed' giving undefined method `exists?' for File:Class
buckled0 opened this issue · 2 comments
buckled0 commented
As the title suggests I'm trying to test the webhook checkout.session.completed
but each time it runs I'm getting the following error:
NoMethodError:
undefined method 'exists?' for File:Class
Here is my test code, it looks like what the docs give me but I can't seem to get it to work:
let(:event) do
StripeMock.mock_webhook_event('checkout.session.completed', {
client_reference_id: client.reference_id,
subscription: subscription.id,
customer_details: { email: user.email }
})
end
Currently using version 3.1.0.rc2
gregmolnar commented
@buckled0 Could you please try this on master?
codrutzu commented
File.exists? was removed in ruby 3.2