Skip to content

Commit

Permalink
Version 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisyour committed Jan 24, 2011
1 parent fc4716a commit a3a4b90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion lib/geo_location/version.rb
@@ -1,3 +1,3 @@
module GeoLocation
VERSION = "0.4.1"
VERSION = "0.4.2"
end
18 changes: 0 additions & 18 deletions test/test_geo_location.rb
Expand Up @@ -144,22 +144,4 @@ class TestGeoLocation < Test::Unit::TestCase
end

end

context 'on localhost' do

setup do
#GeoLocation::use = :hostip
GeoLocation::use = :maxmind
GeoLocation::key = 'sNHKg3eUWYoT'
GeoLocation::dev = nil
GeoLocation::dev_ip = nil
@location = GeoLocation.find('127.0.0.1')
end

should "not work properly" do
puts @location.inspect
assert_equal "nothing", @location[:city]
end
end

end

0 comments on commit a3a4b90

Please sign in to comment.