spec/split_spec.rb in joshbuddy-usher-0.3.2 vs spec/split_spec.rb in joshbuddy-usher-0.3.3

- old
+ new

@@ -51,7 +51,17 @@ [:/, "test", :/, "this"], [:/, "test", :/, "this", :/, "split"], [:/, "test", :/, "this", :/, "split", '.', Usher::Route::Variable.new(:':', :format)] ] end + + it "should to_s all different variable types" do + Usher::Splitter.for_delimiters(['/', '.']).split('/:split/*splitter').first.collect{|v| v.to_s} == + [ ':split', '*splitter' ] + end + + it "should == variable types" do + parts = Usher::Splitter.for_delimiters(['/', '.']).split('/:split/:split').first + parts[1].should == parts[3] + end end \ No newline at end of file