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 / WebMock for testing Namecheap replies #4

Open
parasquid opened this issue Jun 16, 2013 · 2 comments
Open

Use VCR / WebMock for testing Namecheap replies #4

parasquid opened this issue Jun 16, 2013 · 2 comments
Assignees

Comments

@parasquid
Copy link
Owner

https://github.com/vcr/vcr will record api replies from Namecheap so we have a static, predictable, unchanging reply from which we can base our tests on.

https://github.com/bblimke/webmock intercepts web calls and mocks them out so tests are fast and we don't have to be online.

Together they make for a more robust test suite.

@ghost ghost assigned parasquid Jun 16, 2013
@dmyers
Copy link
Collaborator

dmyers commented Jun 16, 2013

Yeah VCR and WebMock look great.

@parasquid
Copy link
Owner Author

I've been working with VCR and WebMock on company projects, and while they're great for integration tests, they can make the test suite more fragile and very hard to maintain.

We should still use the two gems, but I think I'll do some more refactoring of the code and do proper tests to exercise objects better without the use of VCR.

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

2 participants