summaryrefslogtreecommitdiff
path: root/spec/unit/controller
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-11-17 14:23:20 +0100
committerGibheer <gibheer@gmail.com>2012-11-20 20:37:10 +0100
commit8e1b79663c1ac1a105e0e1103b4d09c0d897371d (patch)
treea0743af7b0662fbb4397448c4c582c6f823be145 /spec/unit/controller
parent019bccd4a2d83571eabb58662f3be44f0f3d9951 (diff)
added a basic spec for the controller
Diffstat (limited to 'spec/unit/controller')
-rw-r--r--spec/unit/controller/call_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/unit/controller/call_spec.rb b/spec/unit/controller/call_spec.rb
new file mode 100644
index 0000000..af6f719
--- /dev/null
+++ b/spec/unit/controller/call_spec.rb
@@ -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