Skip to content

Conversation

@gnclmorais
Copy link
Contributor

Addresses the issue by disabling web requests while running tests (something I believe to be a good practice) and stubs requests specifically to Flodesk’s API. Fixes #2322

@gnclmorais gnclmorais force-pushed the stub-flodesk-requests branch 2 times, most recently from c2e0cc7 to 25bf47f Compare November 27, 2025 21:25
Addresses the issue by disabling web requests while running tests
(something I believe to be a good practice) and stubs requests
specifically to Flodesk’s API.

Fixes codebar#2322
Copy link
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Good to have that in place.


config.before(:each) do
# Stub all Flodesk API endpoints globally so tests don't make external requests
# when fabricating members (which trigger Subscription.after_create callback)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good context!

@olleolleolle olleolleolle merged commit c795abb into codebar:master Nov 28, 2025
2 checks passed
@gnclmorais gnclmorais deleted the stub-flodesk-requests branch December 1, 2025 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider mocking out Flodesk::Client in specs

2 participants