Sha256: 1650686c4a714a9619f6afc704b2a84a750c2e6b57b0bc80c2c629026cf7a5f3

Contents?: true

Size: 194 Bytes

Versions: 4

Compression:

Stored size: 194 Bytes

Contents

require 'spec_helper'

describe Mongoid::Geospatial::Box do
  it 'should work' do
    alarm = Alarm.new(area: [[1, 2], [3, 4]])
    expect(alarm.area).to be_a Mongoid::Geospatial::Box
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-geospatial-5.1.0 spec/mongoid/geospatial/fields/box_spec.rb
mongoid-geospatial-5.0.0 spec/mongoid/geospatial/fields/box_spec.rb
mongoid-geospatial-4.0.1 spec/mongoid/geospatial/fields/box_spec.rb
mongoid-geospatial-4.0.0 spec/mongoid/geospatial/fields/box_spec.rb