From 7630b38e229bc32468f7dfbd6a959334075d4614 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 21 Dec 2007 12:26:27 +0000 Subject: Ruby 1.9 compat: compiled templates test git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/compiled_templates_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actionpack/test') 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 -- cgit v1.2.3