aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/request/parameter/custom_spec.rb
diff options
context:
space:
mode:
authorStormwind <stormwind@stormwinds-page.de>2013-01-06 10:28:13 +0100
committerStormwind <stormwind@stormwinds-page.de>2013-01-06 10:28:13 +0100
commitcd97198e2269e8651d5f8081ec20501c8ea39aa9 (patch)
tree94f0f126bc8567e43dd694749ff1366040f04a65 /spec/unit/request/parameter/custom_spec.rb
parent3bb53d7343915e1a9f75f5ca4b53d61313b0ef29 (diff)
Kill all mutants in Zero::Request::Parameter
I've also changed "extract_query_params" because it does not matter, if the query string it empty or not for the "parse_string" method.
Diffstat (limited to 'spec/unit/request/parameter/custom_spec.rb')
-rw-r--r--spec/unit/request/parameter/custom_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/request/parameter/custom_spec.rb b/spec/unit/request/parameter/custom_spec.rb
index 9c720d2..1abebc9 100644
--- a/spec/unit/request/parameter/custom_spec.rb
+++ b/spec/unit/request/parameter/custom_spec.rb
@@ -15,4 +15,9 @@ describe Zero::Request::Parameter, '#custom' do
expect(subject.custom['foo']).to eq('latest')
end
+
+ it 'is empty if no custom parameter is set' do
+ expect(subject.custom).to eq({})
+ expect(env['zero.params.custom']).to eq({})
+ end
end