Ruby 1.9 compat: compiled templates test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2007-12-21 12:26:27 +00:00
parent 1f98bf101a
commit 7630b38e22

View File

@@ -64,8 +64,12 @@ class CompiledTemplateTests < Test::Unit::TestCase
def test_mtime
t1 = Time.now
test_compile_source_single_method
assert (t1..Time.now).include?(ct.mtime('doubling method', [:a]))
mtime = ct.mtime('doubling method', [:a])
assert mtime < Time.now
assert mtime > t1
end
uses_mocha 'test_compile_time' do