aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/xml_mini/rexml_engine_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-03-09 17:27:39 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-10 11:56:19 -0700
commit694998ee4fb8d257ba78424cab630846327a0889 (patch)
tree42639216568af741a4d484c486336131c1c7d6d5 /activesupport/test/xml_mini/rexml_engine_test.rb
parentd4091d3bc79731f55491cfb51c604a66502c944f (diff)
downloadrails-694998ee4fb8d257ba78424cab630846327a0889.tar.gz
rails-694998ee4fb8d257ba78424cab630846327a0889.tar.bz2
rails-694998ee4fb8d257ba78424cab630846327a0889.zip
Nokogiri backend for XmlMini
[#2190 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport/test/xml_mini/rexml_engine_test.rb')
-rw-r--r--activesupport/test/xml_mini/rexml_engine_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/activesupport/test/xml_mini/rexml_engine_test.rb b/activesupport/test/xml_mini/rexml_engine_test.rb
new file mode 100644
index 0000000000..a412d8ca05
--- /dev/null
+++ b/activesupport/test/xml_mini/rexml_engine_test.rb
@@ -0,0 +1,15 @@
+require 'abstract_unit'
+require 'active_support/xml_mini'
+
+class REXMLEngineTest < Test::Unit::TestCase
+ include ActiveSupport
+
+ def test_default_is_rexml
+ assert_equal XmlMini_REXML, XmlMini.backend
+ end
+
+ def test_set_rexml_as_backend
+ XmlMini.backend = 'REXML'
+ assert_equal XmlMini_REXML, XmlMini.backend
+ end
+end