diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-04-17 23:06:26 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-04-17 23:12:04 +0530 |
commit | 3a24247b95e21e093ab706e394de392220cc4929 (patch) | |
tree | 693919bb04b1dc184283ce3b554b645b3b9185f5 /actionpack/test/controller | |
parent | 3b0a627a94cca3a77568703e2053805b5a7ff807 (diff) | |
download | rails-3a24247b95e21e093ab706e394de392220cc4929.tar.gz rails-3a24247b95e21e093ab706e394de392220cc4929.tar.bz2 rails-3a24247b95e21e093ab706e394de392220cc4929.zip |
Properly verify that cache accepts and user `expires` value.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 754ac144cc..7faf3cd8c6 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -219,12 +219,15 @@ CACHED end def test_fragment_caching_with_options + time = Time.now get :fragment_cached_with_options assert_response :success expected_body = "<body>\n<p>ERB</p>\n</body>\n" assert_equal expected_body, @response.body - assert_equal "<p>ERB</p>", @store.read("views/with_options") + Time.stub(:now, time + 11) do + assert_nil @store.read("views/with_options") + end end def test_render_inline_before_fragment_caching |