regexp = opts
split_camel_case = true
else
- regexp = opts[:regexp] || /[ _,.-]+/
+ regexp = opts[:regexp] || /[\t\n _,.-]+/
if opts.has_key? :camel_case
split_camel_case = opts[:camel_case]
else
end
it "splits the original using a default regexp" do
- l1 = Label.new "Test label_string"
+ l1 = Label.new "Test label_string\tfred"
l1.split
- l1.processed.should == ["Test", "label", "string"]
+ l1.processed.should == ["Test", "label", "string", "fred"]
end
it "splits the original on camel case by default" do
l1.tidy
l2.split.downcase.stem
l1.processed.should == l2.processed
-
end
end # tidy