summaryrefslogtreecommitdiff
path: root/spec/unit/controller/call_spec.rb
blob: af6f7194aafa02f558ffd6f5c6c59dc9202efbc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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