Sha256: cd3c71cfeb2ebd240f3454dca6438a0bd1bb41f8fbda2fe5e1a8af1f34b4853c
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
require 'test_helper' class NearTest < Test::Unit::TestCase def test_near_scope_options_without_sqlite_includes_bounding_box_condition result = Event.send(:near_scope_options, 1.0, 2.0, 5) assert_match /test_table_name.latitude BETWEEN 0.9276\d* AND 1.0723\d* AND test_table_name.longitude BETWEEN 1.9276\d* AND 2.0723\d* AND /, result[:conditions][0] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geocoder-1.1.6 | test/near_test.rb |
geocoder-1.1.5 | test/near_test.rb |