From 9ea50a86a1ef762269f4c8d09e5934afd5acd93c Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Thu, 11 Jan 2018 12:41:39 -0500 Subject: [PATCH] Add note about limitations of Test lookup results. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 232a2dd6..21b0012a 100644 --- a/README.md +++ b/README.md @@ -1067,6 +1067,7 @@ Notes: - Keys must be strings not symbols when calling `add_stub` or `set_default_stub`. For example `'latitude' =>` not `:latitude =>`. - To clear stubs (e.g. prior to another spec), use `Geocoder::Lookup::Test.reset`. This will clear all stubs _including the default stub_. +- The stubbed result objects returned by the Test lookup do not support all the methods real result objects do. If you need to test interaction with real results it may be better to use an external stubbing tool and something like WebMock or VCR to prevent network calls. Command Line Interface -- GitLab