Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
format
  • Loading branch information
vvgomes committed Feb 28, 2013
1 parent d17f93a commit c3ef54c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions spec/spec_helper.rb
Expand Up @@ -42,13 +42,16 @@
REDIS.flushdb REDIS.flushdb
AWS.stub! AWS.stub!


location = stub Geocoder.stub(:search).and_return([
location.stub(:city).and_return 'New York' stub.tap do |location|
location.stub(:metrocode).and_return '1234' location.stub(:city).and_return 'New York'
location.stub(:state).and_return 'New York' location.stub(:metrocode).and_return '1234'
location.stub(:state_code).and_return 'NY' location.stub(:state).and_return 'New York'
location.stub(:country_code).and_return 'US' location.stub(:state_code).and_return 'NY'
Geocoder.stub(:search).and_return [location] location.stub(:country_code).and_return 'US'
end
])

$statsd = FakeStatsd.new $statsd = FakeStatsd.new
end end


Expand Down

0 comments on commit c3ef54c

Please sign in to comment.