Fri Jan 18 14:54:04 EST 2008 Matt Palmer * Fix the rest of the out-of-tree test failures diff -rN -u old-bugfixes/test/test_helper.rb new-bugfixes/test/test_helper.rb --- old-bugfixes/test/test_helper.rb 2008-10-20 23:30:58.548857173 +1100 +++ new-bugfixes/test/test_helper.rb 2008-10-20 23:30:58.552857254 +1100 @@ -30,6 +30,18 @@ require File.join(File.dirname(__FILE__), "..", "init") +# Using the cookie store for our integration tests gives strange errors +# about needing to setup secrets, and I couldn't be bothered to do that, +# so we monkeypatch our way out of it. +class CGI::Session::CookieStore + def ensure_secret_secure(s) + end + + def generate_digest(s) + 'x' + end +end + CONTROLLER_FIXTURE_DIR = File.join(File.expand_path(File.dirname(__FILE__)), 'fixtures/controllers') require File.join(CONTROLLER_FIXTURE_DIR, 'other_controller') require File.join(CONTROLLER_FIXTURE_DIR, 'test_controller')