mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Remove some unnecessary specs
This commit is contained in:
parent
4c423e967f
commit
efcf591581
1 changed files with 0 additions and 19 deletions
|
@ -2,25 +2,6 @@ require "./spec_helper"
|
||||||
|
|
||||||
describe "Route" do
|
describe "Route" do
|
||||||
describe "match?" do
|
describe "match?" do
|
||||||
# it "doesn't match because of route" do
|
|
||||||
# route = Route.new("GET", "/foo/bar") { "" }
|
|
||||||
# request = HTTP::Request.new("GET", "/world?message=coco")
|
|
||||||
# route.match?(request).should be_nil
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# it "doesn't match because of method" do
|
|
||||||
# route = Route.new("GET", "/foo/bar") { "" }
|
|
||||||
# request = HTTP::Request.new("POST", "/foo/bar")
|
|
||||||
# route.match?(request).should be_nil
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# it "matches" do
|
|
||||||
# route = Route.new("GET", "/foo/:one/path/:two") { "" }
|
|
||||||
# request = HTTP::Request.new("GET", "/foo/uno/path/dos")
|
|
||||||
# match = route.match?(request)
|
|
||||||
# match.should eq true
|
|
||||||
# end
|
|
||||||
|
|
||||||
it "matches the correct route" do
|
it "matches the correct route" do
|
||||||
kemal = Kemal::Handler.new
|
kemal = Kemal::Handler.new
|
||||||
kemal.add_route "GET", "/route1" do |env|
|
kemal.add_route "GET", "/route1" do |env|
|
||||||
|
|
Loading…
Reference in a new issue