test/rack/blogengine/application_router_test.rb in rack-blogengine-0.2.5 vs test/rack/blogengine/application_router_test.rb in rack-blogengine-0.2.6
- old
+ new
@@ -11,10 +11,10 @@
documents = [{ html: '<!DOCTYPE html><body><h2>This is the Index Page</h2></body></html>',
path: '/' }]
env_fail = { 'PATH_INFO' => '/fail' }
request_fail = Rack::Request.new(env_fail)
-
+
env_success = { 'PATH_INFO' => '/' }
request_success = Rack::Request.new(env_success)
@route_success = Rack::Blogengine::ApplicationRouter.map_route(request_success, documents)
@route_fail = Rack::Blogengine::ApplicationRouter.map_route(request_fail, documents)