spec/api/indexer/attributes_spec.rb in sunspot-2.6.0 vs spec/api/indexer/attributes_spec.rb in sunspot-2.7.0
- old
+ new
@@ -96,10 +96,10 @@
expect(connection).to have_add_with(:coordinates_s => 'dr5xx3nytvgs')
end
it 'should index latitude and longitude passed as non-Floats' do
coordinates = Sunspot::Util::Coordinates.new(
- BigDecimal.new('40.7'), BigDecimal.new('-73.5'))
+ BigDecimal('40.7'), BigDecimal('-73.5'))
session.index(post(:coordinates => coordinates))
expect(connection).to have_add_with(:coordinates_s => 'dr5xx3nytvgs')
end
it 'should correctly index an attribute field with block access' do