On May 5, 2011, at 1:37 PM, Chris Lalancette wrote: > 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!
OK. Pushed to SVN. Thanks for reporting that! -- Michal > > -- > Chris Lalancette ------------------------------------------------------ Michal Fojtik, [email protected] Deltacloud API: http://deltacloud.org
