spec/api/indexer/attributes_spec.rb in sunspot-0.10.6 vs spec/api/indexer/attributes_spec.rb in sunspot-0.10.7

- old
+ new

@@ -19,9 +19,14 @@ it 'should allow indexing by a multiple-value field' do session.index(post(:category_ids => [3, 14])) connection.should have_add_with(:category_ids_im => ['3', '14']) end + it 'should not index a single-value field with newlines as multiple' do + session.index(post(:title => "Multi\nLine")) + connection.adds.last.first.field_by_name(:title_ss).value.should == "Multi\nLine" + end + it 'should correctly index a time field' do session.index( post(:published_at => Time.parse('1983-07-08 05:00:00 -0400')) ) connection.should have_add_with(:published_at_d => '1983-07-08T09:00:00Z')