test/segment.rb in cuba-1.0.0 vs test/segment.rb in cuba-2.0.0.rc1

- old
+ new

@@ -1,11 +1,11 @@ require File.expand_path("helper", File.dirname(__FILE__)) setup do Cuba.define do - on path("post") do - on segment do |id| + on "post" do + on :id do |id| res.write id end end end @@ -40,6 +40,6 @@ env["PATH_INFO"] += "/one/two/three" _, _, resp = Cuba.call(env) assert_equal ["one"], resp.body -end +end \ No newline at end of file