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

use vcr to stub network requests #325

Merged
merged 1 commit into from Nov 9, 2016

Conversation

HParker
Copy link
Member

@HParker HParker commented Oct 31, 2016

there are three tests in feed_spec that require network to pass.

PR #297 fixes the immediate issue by making the test general enough to
pass when the response from the server changes somewhat.

PR #300 fixes the network issue, but uses specific stubs. I would say
this method is no better or worse than this one, however it does require
knowing that you are stubbing the request and manually keeping responses
up to date.

This method acts the most like actually hitting the network and will
work on an airplane.

@FeedjiraBot
Copy link

FeedjiraBot commented Oct 31, 2016

1 Error
🚫 Please start subject with capital letter.

Generated by 🚫 danger

there are three tests in feed_spec that require network to pass.

PR feedjira#297 fixes the immediate issue by making the test general enough to
pass when the response from the server changes somewhat.

PR feedjira#300 fixes the network issue, but uses specific stubs. I would say
this method is no better or worse than this one, however it does require
knowing that you are stubbing the request and manually keeping responses
up to date.

This method acts the most like actually hitting the network and will
work on an airplane.
@HParker HParker merged commit fed12dc into feedjira:master Nov 9, 2016
@HParker HParker deleted the stub-network-tests branch November 9, 2016 19:36
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.

None yet

2 participants