diff options
author | Tim Harper <timcharper@gmail.com> | 2008-10-20 13:21:59 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-10-20 13:21:59 -0500 |
commit | fcb45e5ec3c8ab7b11391c0639609918876ddbb2 (patch) | |
tree | 79b101edc15fcb3df2a9a0bda2917bec0514e901 /actionpack/test/controller | |
parent | 1082cba4417100552a879c0bc0d415f9944767f8 (diff) | |
download | rails-fcb45e5ec3c8ab7b11391c0639609918876ddbb2.tar.gz rails-fcb45e5ec3c8ab7b11391c0639609918876ddbb2.tar.bz2 rails-fcb45e5ec3c8ab7b11391c0639609918876ddbb2.zip |
Ensure ActionView::Helpers::AssetTagHelper::AssetTag::Cache is cleared before loading so changes to asset files are picked up by the broswer [#1233 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/dispatcher_test.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/actionpack/test/controller/dispatcher_test.rb b/actionpack/test/controller/dispatcher_test.rb index 911fcab67b..3ee78a6156 100644 --- a/actionpack/test/controller/dispatcher_test.rb +++ b/actionpack/test/controller/dispatcher_test.rb @@ -26,9 +26,17 @@ class DispatcherTest < Test::Unit::TestCase end def test_clears_dependencies_after_dispatch_if_in_loading_mode - ActionController::Routing::Routes.expects(:reload).once ActiveSupport::Dependencies.expects(:clear).once + dispatch(@output, false) + end + + def test_reloads_routes_before_dispatch_if_in_loading_mode + ActionController::Routing::Routes.expects(:reload).once + dispatch(@output, false) + end + def test_clears_asset_tag_cache_before_dispatch_if_in_loading_mode + ActionView::Helpers::AssetTagHelper::AssetTag::Cache.expects(:clear).once dispatch(@output, false) end |