spec/plugin/symbol_matchers_spec.rb in roda-2.13.0 vs spec/plugin/symbol_matchers_spec.rb in roda-2.14.0

- old
+ new

@@ -25,10 +25,14 @@ r.is "thing/:thing" do |d| "thing#{d}" end + r.is "thing2", :thing do |d| + "thing2#{d}" + end + r.is :f do |f| "f#{f}" end r.is 'q:rest' do |rest| @@ -67,7 +71,8 @@ body("/12/1azy/fffff").must_equal 'dwf121azyfffff' status("/1/f/a").must_equal 404 body("/qa/b/c/d//f/g").must_equal 'resta/b/c/d//f/g' body('/q').must_equal 'rest' body('/thing/q').must_equal 'thingq' + body('/thing2/q').must_equal 'thing2q' end end