diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-21 12:26:27 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-21 12:26:27 +0000 |
commit | 7630b38e229bc32468f7dfbd6a959334075d4614 (patch) | |
tree | 53342c387e8acda3c7e64c30a6d39dea2762f28f /actionpack/test/template | |
parent | 1f98bf101a6093ea4b3f1f49c27ba3234376df6b (diff) | |
download | rails-7630b38e229bc32468f7dfbd6a959334075d4614.tar.gz rails-7630b38e229bc32468f7dfbd6a959334075d4614.tar.bz2 rails-7630b38e229bc32468f7dfbd6a959334075d4614.zip |
Ruby 1.9 compat: compiled templates test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/compiled_templates_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/template/compiled_templates_test.rb b/actionpack/test/template/compiled_templates_test.rb index d7ef75eb8c..40b5ce1ade 100644 --- a/actionpack/test/template/compiled_templates_test.rb +++ b/actionpack/test/template/compiled_templates_test.rb @@ -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 |