Rails Integration Test Bugfix for Metal and Rack Applications
Blog ยป Rails Integration Test Bugfix for Metal and Rack Applications
Posted on 11 Sep 2009 00:15
I am using Sinatra to write Metal for my Rails Applications and using Webrat to test all. But it does not matter, there is a bug that prevents the integration tests of all rack applications as well as Metals inside a Rails project. Including this little patch inside 'test_helper.rb' fixes the problem.
module Rack module Utils class HeaderHash puts "Rack::Utils::HeaderHash bug fix on #replace" def replace other self.clear other.each { |k,v| self[k] = v } end end end end
If you like this page, please spread the word:
You can contact me if you have questions or corrections.


