Permalink
Browse files

format

  • Loading branch information...
1 parent d17f93a commit c3ef54ca068a31ca48b0b4daa43ace0baa56b45c @vvgomes vvgomes committed Feb 28, 2013
Showing with 10 additions and 7 deletions.
  1. +10 −7 spec/spec_helper.rb
View
@@ -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

0 comments on commit c3ef54c

Please sign in to comment.