Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

format

  • Loading branch information...
commit c3ef54ca068a31ca48b0b4daa43ace0baa56b45c 1 parent d17f93a
@vvgomes vvgomes authored
Showing with 10 additions and 7 deletions.
  1. +10 −7 spec/spec_helper.rb
View
17 spec/spec_helper.rb
@@ -42,13 +42,16 @@
REDIS.flushdb
AWS.stub!
- location = stub
- location.stub(:city).and_return 'New York'
- location.stub(:metrocode).and_return '1234'
- location.stub(:state).and_return 'New York'
- location.stub(:state_code).and_return 'NY'
- location.stub(:country_code).and_return 'US'
- Geocoder.stub(:search).and_return [location]
+ Geocoder.stub(:search).and_return([
+ stub.tap do |location|
+ location.stub(:city).and_return 'New York'
+ location.stub(:metrocode).and_return '1234'
+ location.stub(:state).and_return 'New York'
+ location.stub(:state_code).and_return 'NY'
+ location.stub(:country_code).and_return 'US'
+ end
+ ])
+
$statsd = FakeStatsd.new
end
Please sign in to comment.
Something went wrong with that request. Please try again.