Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Time#xmlschema is only available when you've required 'time'. Add a u…

…nit test to catch regressions. [Koz]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3880 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit bf39c39d88712905a18b7be64a80ecc008719e34 1 parent 7bbc759
@NZKoz NZKoz authored
View
1  activesupport/lib/active_support/core_ext/time/conversions.rb
@@ -1,4 +1,5 @@
require 'date'
+require 'time'
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
View
4 activesupport/test/core_ext/time_ext_test.rb
@@ -188,4 +188,8 @@ def test_next_month_on_31st
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
Please sign in to comment.
Something went wrong with that request. Please try again.