diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-28 07:36:34 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-28 07:36:34 +0000 |
commit | 17fee001a9d40aaed4c62f1e159242ca47182c2b (patch) | |
tree | 95add79287c7f1ff45cfd3d3405a0847deea7085 /activesupport/test/core_ext | |
parent | 0eacdcf9a3e37e05f47a4ded7f0a4aff3b65fbe4 (diff) | |
download | rails-17fee001a9d40aaed4c62f1e159242ca47182c2b.tar.gz rails-17fee001a9d40aaed4c62f1e159242ca47182c2b.tar.bz2 rails-17fee001a9d40aaed4c62f1e159242ca47182c2b.zip |
:db format for Date#to_s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/date_ext_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb index 56161954a0..055b3659fd 100644 --- a/activesupport/test/core_ext/date_ext_test.rb +++ b/activesupport/test/core_ext/date_ext_test.rb @@ -4,6 +4,7 @@ class DateExtCalculationsTest < Test::Unit::TestCase def test_to_s assert_equal "21 Feb", Date.new(2005, 2, 21).to_s(:short) assert_equal "February 21, 2005", Date.new(2005, 2, 21).to_s(:long) + assert_equal "2005-02-21", Date.new(2005, 2, 21).to_s(:db) end def test_to_time |