From fc2c010e1f97b8596f34b87b66cd821991e7778f Mon Sep 17 00:00:00 2001 From: Nathan Wenneker <nathan@preferral.com> Date: Wed, 21 Sep 2016 12:47:24 -0600 Subject: [PATCH] Add Lookup::Test.reset to README The method `#reset` for clearing stubs was previously unmentioned in the README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 647960b9..a8630695 100644 --- a/README.md +++ b/README.md @@ -999,8 +999,10 @@ Now, any time Geocoder looks up "New York, NY" its results array will contain on ] ) -Note: - Keys must be strings not symbols when calling `add_stub` or `set_default_stub`. For example `'latitude' =>` not `:latitude =>`. +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_. Command Line Interface -- GitLab