README.md in google_timezone-0.0.4 vs README.md in google_timezone-0.0.5

- old
+ new

@@ -36,9 +36,21 @@ More information [here](https://developers.google.com/maps/documentation/timezone/) Also there is `GoogleTimezone::Result#success?` method. It returns true if responce was successful. The bang version `fetch!` raises an `GoogleTimezone::Error` exception with error message if response from Google wasn't success. +## Usage in tests/specs + +During tests, you probably don't want to make remote calls. To achieve this, you should set a default stub in your test/spec helper file, e.g.: + + # spec/support/google_timezone.rb + GoogleTimezone.set_default_stub( + 'dstOffset' => 3600, + 'rawOffset' => -10800, + 'status' => 'OK', + 'timeZoneId' => 'America/Sao_Paulo', + 'timeZoneName' => 'Brasilia Summer Time' + ) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)