0
0
Fork 0

added spec for the root url

This commit is contained in:
Gibheer 2012-10-14 00:21:28 +02:00
parent 4e05fc75e3
commit 299229f9cb
1 changed files with 6 additions and 0 deletions

View File

@ -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') }