Skip to content

Commit

Permalink
Fix failing tests by disabling gmaps api requests in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgrathwell committed Mar 3, 2013
1 parent ff329c5 commit 55a09ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/location.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Location < ActiveRecord::Base
has_many :events
validates_presence_of :name, :address_1, :city
acts_as_gmappable
acts_as_gmappable(process_geocoding: !Rails.env.test?)

def gmaps4rails_address
"#{self.address_1}, #{self.city}, #{self.state}, #{self.zip}"
Expand Down

0 comments on commit 55a09ed

Please sign in to comment.