Skip to content
Snippets Groups Projects
Commit fc2c010e authored by Nathan Wenneker's avatar Nathan Wenneker
Browse files

Add Lookup::Test.reset to README

The method `#reset` for clearing stubs
was previously unmentioned in the README
parent 6589b9b2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment