diff options
author | Gibheer <gibheer@gmail.com> | 2012-10-14 00:21:28 +0200 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-11-08 21:36:56 +0100 |
commit | 299229f9cbd4203e34552dcfa949f967e4d261ef (patch) | |
tree | 9e6389532f9e20e0677a0d15b1bd14d591c3e1cb /spec/integration | |
parent | 4e05fc75e3bceb6811edd19cfae2718ffe43f769 (diff) |
added spec for the root url
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/router_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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') } |