Sha256: 234826446498e49b44f335c4220993cb66eaf3a48a674f53558162c3b6536398
Contents?: true
Size: 818 Bytes
Versions: 5
Compression:
Stored size: 818 Bytes
Contents
require 'spec_helper' describe Solrizer::Extractor do before(:all) do @extractor = Solrizer::Extractor.new end describe ".format_node_value" do it "should strip white space out of the array and join it with a single blank" do Solrizer::Extractor.format_node_value([" test \n node \t value \t"]).should == "test node value" Solrizer::Extractor.format_node_value([" test ", " \n node ", " \t value \t"]).should == "test node value" end it "should return an empty string if given an argument of nil" do Solrizer::Extractor.format_node_value(nil).should == "" end it "should strip white space out of a string" do Solrizer::Extractor.format_node_value("raw string\n with whitespace").should == "raw string with whitespace" end end end
Version data entries
5 entries across 5 versions & 1 rubygems