Rails Integration Test Bugfix for Metal and Rack Applications
Blog ยป Rails Integration Test Bugfix for Metal and Rack Applications
Posted on 1252628111|%A: %d %B, %Y|agohover
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:
As well as commenting here, you can tweet or email to me
Add a New Comment







