spec/units/suffix_spec.rb in solrizer-3.3.0 vs spec/units/suffix_spec.rb in solrizer-3.4.0

- old
+ new

@@ -52,10 +52,13 @@ describe "#to_s" do it "should combine the fields into a suffix string" do expect(Solrizer::Suffix.new(:string, :stored, :indexed).to_s).to eq '_ssi' expect(Solrizer::Suffix.new(:integer, :stored, :multivalued).to_s).to eq '_ism' end + it "should be able to handle longs" do + expect(Solrizer::Suffix.new(:long, :stored, :indexed).to_s).to eq '_ltsi' + end end describe "config" do subject do Solrizer::Suffix.new(:my_custom_type, :a, :b, :c) @@ -75,6 +78,6 @@ end subject.config.b_suffix = 'now_with_more_b' expect(subject.to_s).to eq "#custom_suffix_now_with_more_b" end end -end \ No newline at end of file +end