incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lalancette <clala...@redhat.com>
Subject Re: [PATCH core] Fix for Webrick incorrectly handling matrix params (DTACLOUD-34)
Date Thu, 05 May 2011 11:37:36 GMT
On 05/05/11 - 11:51:26AM, Michal Fojtik wrote:
> This patch throws an error in test:mock unit test:
> 
>   1) Error:
> test_it_change_features_after_driver_change(DeltacloudUnitTest::ApiTest):
> NoMethodError: private method `gsub' called for nil:NilClass
>     ./tests/../lib/sinatra/rack_matrix_params.rb:74:in `call'
> 
> Seems like this variable (REQUEST_PATH) is empty in rack-test. I fix it using
> this line:
> 
> env['REQUEST_PATH'] = env['PATH_INFO'] if env['rack.test']
> 
> If you're happy with this fix I can push it to SVN.

That seems reasonable enough to me.  Thanks!

-- 
Chris Lalancette

Mime
View raw message