Sha256: 00bdf99436528eff3a4b9bc9662f5d88c78579033556935eef9ebd233dfed6ab

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

require 'bigdecimal'

shared_examples_for "spatial query" do
  it 'filters by radius' do
    search do
      with(:coordinates_new).in_radius(23, -46, 100)
    end

    connection.should have_last_search_including(:fq, "{!geofilt sfield=coordinates_new_ll pt=23,-46 d=100}")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunspot-2.0.0.pre.111215 spec/api/query/spatial_examples.rb