aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-10-07 21:09:07 +0200
committerMichael Koziarski <michael@koziarski.com>2008-10-07 21:09:07 +0200
commitaec391621b6af7af1e0ba61c993bbdd88624eac3 (patch)
treeea6791cfb67800cf119945befc7c1bafb0fea9d5 /actionpack/test/controller
parent5556db22c57294a9f4e2ee4e633834ec6a200242 (diff)
downloadrails-aec391621b6af7af1e0ba61c993bbdd88624eac3.tar.gz
rails-aec391621b6af7af1e0ba61c993bbdd88624eac3.tar.bz2
rails-aec391621b6af7af1e0ba61c993bbdd88624eac3.zip
Make sure last_modified! works with <= rather than just equality.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/render_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 5a6ca98b2e..7b8bb6856b 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1441,6 +1441,12 @@ class LastModifiedRenderTest < Test::Unit::TestCase
get :conditional_hello_with_bangs
assert_response :not_modified
end
+
+ def test_last_modified_works_with_less_than_too
+ @request.if_modified_since = 5.years.ago.httpdate
+ get :conditional_hello_with_bangs
+ assert_response :not_modified
+ end
end
class RenderingLoggingTest < Test::Unit::TestCase