0
0
Fork 0

added a spec for custom parameters

This commit is contained in:
Gibheer 2013-01-11 08:06:35 +01:00
parent 6fd096d4ab
commit c75f61de6e
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ describe Zero::Request::Parameter, '#initialize' do
'zero.params.custom' => {'foo' => 'bar'}
}) }
it 'reads the custom parameters' do
expect(subject['foo']).to eq('bar')
end
it 'does not overwrite parameters' do
subject
expect(env['zero.params.custom']).to have_key('foo')