From 4f8b53902492cd33645f000ff74e8cc3c174f9c1 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Mon, 18 May 2015 08:31:19 -0400 Subject: [PATCH] Clarify how default stub is used. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8eccb710..4d5e57ed 100644 --- a/README.md +++ b/README.md @@ -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 ---------------------- -- GitLab