From ea256eaa7f189d069967f8efe3ca9177a5b57795 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 14 Nov 2007 10:33:25 +0000 Subject: Base#to_xml supports the nil="true" attribute like Hash#to_xml. Closes #8268. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/base_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/base_test.rb') diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index e17b2a1b57..ee34d201b8 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -1555,7 +1555,7 @@ class BasicsTest < Test::Unit::TestCase assert xml.include?(%(#{written_on_in_current_timezone})) assert xml.include?(%(--- Have a nice day\n)) assert xml.include?(%(david@loudthinking.com)) - assert xml.match(%()) + assert xml.include?(%()) if current_adapter?(:SybaseAdapter, :SQLServerAdapter, :OracleAdapter) assert xml.include?(%(#{last_read_in_current_timezone})) else -- cgit v1.2.3