diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-09 12:46:06 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-09 13:00:57 -0700 |
commit | 87d82ef76e88d7ce97cfc09151b677b552f2840a (patch) | |
tree | 5ce0f6147cb0da934e658b181546a72b473021b2 /activesupport/test/core_ext/hash_ext_test.rb | |
parent | 146511e0181a8c6703dcff7b5236d81b64841dd5 (diff) | |
download | rails-87d82ef76e88d7ce97cfc09151b677b552f2840a.tar.gz rails-87d82ef76e88d7ce97cfc09151b677b552f2840a.tar.bz2 rails-87d82ef76e88d7ce97cfc09151b677b552f2840a.zip |
Require libxml-ruby 0.9.4 or 0.9.7 pending a segfault bugfix for 1.0.
Delegate parsing to a switchable backend.
Diffstat (limited to 'activesupport/test/core_ext/hash_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index f1f1f15426..2285d5a724 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -884,7 +884,8 @@ class QueryTest < Test::Unit::TestCase end def test_expansion_count_is_limited - assert_raise RuntimeError do + expected = defined?(LibXML) ? LibXML::XML::Error : RuntimeError + assert_raise expected do attack_xml = <<-EOT <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE member [ |