aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/compiled_templates_test.rb6
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