Skip to content

Added real Net::HTTP option for integration tests #119

Merged
merged 1 commit into from Nov 30, 2015

2 participants

@dlozano
dlozano commented Feb 14, 2014

Sometimes in integration tests you might want to do end-to-end tests and hit a external site.
http_mock.rb file requirement stubs all ActiveResource::Connections and at the same time all ActiveResource::Base classes to use a mock. From that point one you can't undo it without hacks.

This is an approach similar to other testing gems like webmock.

@rafaelfranca rafaelfranca merged commit 44370a9 into rails:master Nov 30, 2015

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.