added spec for the root url
This commit is contained in:
parent
4e05fc75e3
commit
299229f9cb
|
@ -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') }
|
||||
|
|
Loading…
Reference in New Issue