spec/plugin/unescape_path_spec.rb in roda-2.20.0 vs spec/plugin/unescape_path_spec.rb in roda-2.21.0
- old
+ new
@@ -2,10 +2,10 @@
describe "unescape_path_path plugin" do
it "decodes URL-encoded routing path" do
app(:unescape_path) do |r|
r.on 'b' do
- r.get /(.)/ do |a|
+ r.get(/(.)/) do |a|
"#{a}-b"
end
end
r.get :name do |name|