summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorStormwind <stormwind@stormwinds-page.de>2012-11-23 18:10:27 +0100
committerStormwind <stormwind@stormwinds-page.de>2012-11-23 18:10:27 +0100
commit1b96ebb36d4cb41e33e877b15b865332aaca8fa5 (patch)
tree06577d14c7757f0d0abb810184b81c72cad36077 /spec/unit
parenta2e6c299cd15b8335441e3b5ba07fe95256f3a2d (diff)
parent495d8f650302d5226cd677b062891ea9021483d5 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'spec/unit')
-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