0
0
Fork 0

added a basic spec for the controller

This commit is contained in:
Gibheer 2012-11-17 14:23:20 +01:00
parent 019bccd4a2
commit 8e1b79663c
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
require 'spec_helper'
describe Zero::Controller, '.call' do
subject { SpecController.call(env) }
let(:env) { EnvGenerator.get('/foo') }
it "returns a response" do
subject.should be_respond_to(:to_a)
end
it "returns an object with the first element being a status" do
subject[0].should be_kind_of(Numeric)
end
end