mirror of
https://github.com/github/rails.git
synced 2026-02-08 13:15:23 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user