From 299229f9cbd4203e34552dcfa949f967e4d261ef Mon Sep 17 00:00:00 2001 From: Gibheer Date: Sun, 14 Oct 2012 00:21:28 +0200 Subject: added spec for the root url --- spec/integration/router_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/integration/router_spec.rb b/spec/integration/router_spec.rb index 3be7b3a..587b879 100644 --- a/spec/integration/router_spec.rb +++ b/spec/integration/router_spec.rb @@ -15,6 +15,12 @@ describe Zero::Router do app.should_receive(:call) end + context 'it recognizes root' do + let(:routes) { { '/' => app } } + let(:env) { generate_env('/') } + it('handles /') { subject } + end + context 'a working route' do let(:routes) { { '/app' => app } } let(:env) { generate_env('/app') } -- cgit v1.2.3-70-g09d2