From cd97198e2269e8651d5f8081ec20501c8ea39aa9 Mon Sep 17 00:00:00 2001 From: Stormwind Date: Sun, 6 Jan 2013 10:28:13 +0100 Subject: 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. --- spec/unit/request/parameter/custom_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/unit/request/parameter/custom_spec.rb') 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 -- cgit v1.2.3-70-g09d2