From bf39c39d88712905a18b7be64a80ecc008719e34 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Wed, 15 Mar 2006 23:15:29 +0000 Subject: Time#xmlschema is only available when you've required 'time'. Add a unit test to catch regressions. [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/core_ext/time_ext_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/time_ext_test.rb b/activesupport/test/core_ext/time_ext_test.rb index 203f9d1a48..2100409dba 100644 --- a/activesupport/test/core_ext/time_ext_test.rb +++ b/activesupport/test/core_ext/time_ext_test.rb @@ -188,4 +188,8 @@ class TimeExtCalculationsTest < Test::Unit::TestCase def test_last_month_on_31st assert_equal Time.local(2004, 2, 29), Time.local(2004, 3, 31).last_month end + + def test_xmlschema_is_available + assert_nothing_raised { Time.now.xmlschema } + end end -- cgit v1.2.3