Lines Matching refs:field
19 field = Solr::Field.new :creator => 'Erik Hatcher'
20 assert_kind_of Solr::XML::Element, field.to_xml
21 assert_match(/<field name=["']creator["']>Erik Hatcher<\/field>/, field.to_xml.to_s)
25 field = Solr::Field.new :creator => 'Erik Hatcher & His Amazing Leaping Ability'
26 assert_kind_of Solr::XML::Element, field.to_xml
27 assert_match(/<field name=["']creator["']>Erik Hatcher & His Amazing Leaping Ability<\/field>/, field.to_xml.to_s)
31 field = Solr::Field.new :time => Time.now
32 assert_kind_of Solr::XML::Element, field.to_xml
33 assert_match(/<field name=["']time["']>[\d]{4}-[\d]{2}-[\d]{2}T[\d]{2}:[\d]{2}:[\d]{2}Z<\/field>/, field.to_xml.to_s)
37 field = Solr::Field.new :i18nstring => 'Äêâîôû Öëäïöü'
38 assert_kind_of Solr::XML::Element, field.to_xml
39 assert_match(/<field name=["']i18nstring["']>Äêâîôû Öëäïöü<\/field>/m, field.to_xml.to_s)
43 field = Solr::Field.new(:blah => "squee", :boost => 3.0)
44 assert_kind_of Solr::XML::Element, field.to_xml
45 assert_match(/<field name=["']blah["'] boost=["']3.0["']>squee<\/field>/, field.to_xml.to_s)