Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6773

Show
Ignore:
Timestamp:
05/18/07 21:20:35 (3 years ago)
Author:
bitsweat
Message:

Date, Time, and DateTime#to_json. Closes #8399.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/CHANGELOG

    r6693 r6773  
    11*SVN* 
     2 
     3* Date, Time, and DateTime#to_json.  #8399 [wycats] 
    24 
    35* Simplify API of assert_difference by passing in an expression that is evaluated before and after the passed in block. See documenation for examples of new API. [Marcel Molina Jr.] 
  • trunk/activesupport/test/json/encoding_test.rb

    r6443 r6773  
    2929                   [ ActiveSupport::JSON::Variable.new('alert("foo")'), 'alert("foo")']] 
    3030  RegexpTests   = [[ /^a/, '/^a/' ], [/^\w{1,2}[a-z]+/ix, '/^\\w{1,2}[a-z]+/ix']] 
     31 
     32  DateTests     = [[ Date.new(2005,1,1), %("01/01/2005") ]] 
     33  TimeTests     = [[ Time.at(0), %("12/31/1969 16:00:00 #{Time.at(0).zone}") ]] 
     34  DateTimeTests = [[ Time.at(0), %("12/31/1969 16:00:00 #{Time.at(0).zone}") ]] 
    3135 
    3236  constants.grep(/Tests$/).each do |class_tests|