Permalink
Browse files

Ruby 1.9 compat: compiled templates test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 1f98bf1 commit 7630b38e229bc32468f7dfbd6a959334075d4614 @jeremy jeremy committed Dec 21, 2007
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/test/template/compiled_templates_test.rb
@@ -64,8 +64,12 @@ def test_compile_source_two_method
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

0 comments on commit 7630b38

Please sign in to comment.