Skip to content
Snippets Groups Projects
Commit 57ae696b authored by Peter M. Goldstein's avatar Peter M. Goldstein
Browse files

Travis config including 1.8.7, 1.9.2, 1.9.3, and JRuby.

parent 175b2815
No related branches found
No related tags found
No related merge requests found
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- jruby-19mode
gemfile:
- Gemfile
- gemfiles/Gemfile.mongoid-2.4.x
env: SSL_CERT_DIR=/etc/ssl/certs
matrix:
exclude:
- rvm: 1.8.7
gemfile: Gemfile
env: SSL_CERT_DIR=/etc/ssl/certs
- rvm: 1.9.2
gemfile: Gemfile
env: SSL_CERT_DIR=/etc/ssl/certs
- rvm: 1.9.3
gemfile: gemfiles/Gemfile.mongoid-2.4.x
env: SSL_CERT_DIR=/etc/ssl/certs
- rvm: jruby-19mode
gemfile: gemfiles/Gemfile.mongoid-2.4.x
env: SSL_CERT_DIR=/etc/ssl/certs
source "http://rubygems.org"
gemspec :path => '..'
group :development, :test do
gem 'rake'
gem 'mongoid', '2.4.11'
gem 'bson_ext', :platforms => :ruby
gem 'rails'
platforms :jruby do
gem 'jruby-openssl'
end
end
......@@ -273,12 +273,9 @@ class Test::Unit::TestCase
end
def is_nan_coordinates?(coordinates)
if defined?(::Float::NAN)
coordinates == ([ Geocoder::Calculations::NAN ] * 2 )
else
return false unless coordinates.respond_to? :size
coordinates.size == 2 && coordinates[0].nan? && coordinates[1].nan?
end
return false unless coordinates.respond_to? :size # Should be an array
return false unless coordinates.size == 2 # Should have dimension 2
coordinates[0].nan? && coordinates[1].nan? # Both coordinates should be NaN
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment