summaryrefslogtreecommitdiff
path: root/spec/unit/controller
diff options
context:
space:
mode:
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
index 7ff6c40..6cc56a4 100644
--- a/spec/unit/controller/call_spec.rb
+++ b/spec/unit/controller/call_spec.rb
@@ -24,4 +24,18 @@ describe Zero::Controller, '.call' do
r = Zero::Request.new(env)
expect(r.params['foo']).to eq('bar')
end
+
+ context "with the response" do
+ let(:response_class) { mock }
+ before :each do
+ Zero::Controller.response = response_class
+ response_class.should_receive(:new)
+ end
+
+ after :each do
+ Zero::Controller.response = nil
+ end
+
+ it { subject }
+ end
end