spec/supernova/solr_indexer_spec.rb in supernova-0.3.5 vs spec/supernova/solr_indexer_spec.rb in supernova-0.3.6
- old
+ new
@@ -95,9 +95,10 @@
[:count, :int] => "count AS count_i",
[:test, :sint] => "test AS test_si",
[:lat, :float] => "lat AS lat_f",
[:text, :boolean] => "text AS text_b",
[:loc, :location] => "loc AS loc_p",
+ [:big_int, :double] => "big_int AS big_int_d",
[:deleted_at, :date] => %(IF(deleted_at IS NULL, NULL, CONCAT(REPLACE(deleted_at, " ", "T"), "Z")) AS deleted_at_dt),
}.each do |(field, type), name|
it "maps #{field} with #{type} to #{name}" do
indexer.sql_column_from_field_and_type(field, type).should == name
end