Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable external connections in feature specs ? #1141

Open
adipasquale opened this issue Jan 25, 2024 · 0 comments
Open

disable external connections in feature specs ? #1141

adipasquale opened this issue Jan 25, 2024 · 0 comments

Comments

@adipasquale
Copy link
Contributor

I can see outgoing calls to peertube for example, I wonder if there are others that should be prevented

cf https://thoughtbot.com/blog/how-to-stub-external-services-in-tests#disable-all-remote-connections

# spec/spec_helper.rb
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)
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

No branches or pull requests

1 participant