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
This commit is contained in:
Michael Koziarski
2006-03-15 23:15:29 +00:00
parent 7bbc759dc0
commit bf39c39d88
2 changed files with 5 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
require 'date'
require 'time'
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:

View File

@@ -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