spec/plugin/params_capturing_spec.rb in roda-2.28.0 vs spec/plugin/params_capturing_spec.rb in roda-2.29.0
- old
+ new
@@ -29,10 +29,10 @@
body('/quux/foobar', 'rack.input'=>StringIO.new).must_equal 'y-quuxfoobar-quux-foo-bar'
body('/quux/asdf', 'rack.input'=>StringIO.new).must_equal 'y--quux-asdf-2'
body('/quux/asdf/890', 'rack.input'=>StringIO.new).must_equal 'y--890-quux-asdf-890-3'
end
- it "should add captures to r.params for string matchers" do
+ deprecated "should add captures to r.params for string matchers" do
app(:params_capturing) do |r|
r.on("bar/:foo") do |foo|
"b-#{foo}-#{r[:foo]}-#{r[:captures].length}"
end