+
+ it "splits the original on numbers" do
+ l1 = Label.new "Test123Label"
+ l1.split :numbers => true
+ l1.processed.should == ["Test", "123", "Label"]
+ l1.original.should == "Test123Label"
+
+ l2 = Label.new "test1label"
+ l2.split :numbers => true
+ l2.processed.should == ["test", "1", "label"]
+ l2.original.should == "test1label"
+ end
+
+ it "doesn't split the original on numbers if asked not to" do
+ l1 = Label.new "Test123Label"
+ l1.split :numbers => false
+ l1.processed.should == ["Test123Label"]
+ l1.original.should == "Test123Label"
+
+ l2 = Label.new "Test123Label"
+ l2.split :numbers => nil
+ l2.processed.should == ["Test123Label"]
+ l2.original.should == "Test123Label"
+ end