diff options
author | Gibheer <gibheer@gmail.com> | 2012-11-29 22:22:21 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2012-11-29 22:22:50 +0100 |
commit | 9cea623595a7347289186dda4273ee65dffea8cb (patch) | |
tree | b198b80e152a11fa19967217dc1d682696d3489d /spec/unit/controller | |
parent | 74bbc7f186edb9fc01e2792946c4f773568defe2 (diff) |
don't overwrite the request
Diffstat (limited to 'spec/unit/controller')
-rw-r--r-- | spec/unit/controller/call_spec.rb | 8 |
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 |