From efcf5915819f639443eb753c40ca23230481cc5d Mon Sep 17 00:00:00 2001 From: sdogruyol Date: Wed, 13 Jan 2016 10:09:12 +0200 Subject: [PATCH] Remove some unnecessary specs --- spec/route_spec.cr | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/spec/route_spec.cr b/spec/route_spec.cr index 96101ab..818eee1 100644 --- a/spec/route_spec.cr +++ b/spec/route_spec.cr @@ -2,25 +2,6 @@ require "./spec_helper" describe "Route" 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 kemal = Kemal::Handler.new kemal.add_route "GET", "/route1" do |env|