spec/request_spec.rb in roda-2.17.0 vs spec/request_spec.rb in roda-2.18.0
- old
+ new
@@ -10,9 +10,21 @@
body("/foo/bar").must_equal "/foo/bar:/foo:/bar"
end
end
+describe "request.real_remaining_path" do
+ it "should be an alias of remaining_path" do
+ app do |r|
+ r.on "foo" do
+ "#{r.remaining_path}:#{r.real_remaining_path}"
+ end
+ end
+
+ body("/foo/bar").must_equal "/bar:/bar"
+ end
+end
+
describe "request.halt" do
it "should return rack response as argument given it as argument" do
app do |r|
r.halt [200, {}, ['foo']]
end