Sha256: b8a2a6efc26ef9ed228473bdbb961f5de291c76a71962e1832a576bd44a64d2f

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'solrizer'

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
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solrizer-1.0.2 spec/units/extractor_spec.rb
solrizer-1.0.1 spec/units/extractor_spec.rb