Permalink
Browse files

Work around ruby 1.9 segfault

  • Loading branch information...
1 parent 425382d commit 0be5bc3f5981f11d81c24ccfb97863a69406cf9d @jeremy jeremy committed Nov 8, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/test/controller/session/cookie_store_test.rb
@@ -266,6 +266,7 @@ def new_session(options = {})
@options = self.class.default_session_options.merge(options)
session = CGI::Session.new(cgi, @options)
+ ObjectSpace.undefine_finalizer(session)
assert_nil cgi.output_hidden, "Output hidden params should be empty: #{cgi.output_hidden.inspect}"
assert_nil cgi.output_cookies, "Output cookies should be empty: #{cgi.output_cookies.inspect}"

0 comments on commit 0be5bc3

Please sign in to comment.