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

Changeset 8468

Show
Ignore:
Timestamp:
12/21/07 12:26:27 (9 months ago)
Author:
bitsweat
Message:

Ruby 1.9 compat: compiled templates test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/template/compiled_templates_test.rb

    r8374 r8468  
    6565  def test_mtime 
    6666    t1 = Time.now 
     67 
    6768    test_compile_source_single_method 
    68     assert (t1..Time.now).include?(ct.mtime('doubling method', [:a])) 
     69    mtime = ct.mtime('doubling method', [:a]) 
     70 
     71    assert mtime < Time.now 
     72    assert mtime > t1 
    6973  end 
    7074