summaryrefslogtreecommitdiff
path: root/spec/unit/controller/call_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/controller/call_spec.rb')
-rw-r--r--spec/unit/controller/call_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/controller/call_spec.rb b/spec/unit/controller/call_spec.rb
index af6f719..d62a3dc 100644
--- a/spec/unit/controller/call_spec.rb
+++ b/spec/unit/controller/call_spec.rb
@@ -11,4 +11,12 @@ describe Zero::Controller, '.call' do
it "returns an object with the first element being a status" do
subject[0].should be_kind_of(Numeric)
end
+
+ it "does not modify an existing request" do
+ r = Zero::Request.new(env)
+ r.params['foo'] = 'bar'
+ subject
+ r = Zero::Request.create(env)
+ expect(r.params['foo']).to eq('bar')
+ end
end