Skip to content
Snippets Groups Projects
Commit 4f8b5390 authored by Alex Reisner's avatar Alex Reisner
Browse files

Clarify how default stub is used.

parent f178268d
No related branches found
No related tags found
No related merge requests found
......@@ -866,7 +866,7 @@ When writing tests for an app that uses Geocoder it may be useful to avoid netwo
]
)
Now, any time Geocoder looks up "New York, NY" its results array will contain one result with the above attributes. You can also set a default stub:
Now, any time Geocoder looks up "New York, NY" its results array will contain one result with the above attributes. You can also set a default stub, to be returned when no other stub is found for a given query:
Geocoder.configure(:lookup => :test)
......@@ -884,7 +884,6 @@ Now, any time Geocoder looks up "New York, NY" its results array will contain on
]
)
Any query that hasn't been explicitly stubbed will return that result.
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