diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-18 21:51:46 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-07-18 21:54:19 +0200 |
commit | 7bd70bae142e41f3c21338a8e5aaf52afff40b38 (patch) | |
tree | 0a59b46f4e9a73d8c8392ec21a35aeebb3011e75 /actionview/test | |
parent | 40f79da8f22d301f87873669d7355346049eccf2 (diff) | |
download | rails-7bd70bae142e41f3c21338a8e5aaf52afff40b38.tar.gz rails-7bd70bae142e41f3c21338a8e5aaf52afff40b38.tar.bz2 rails-7bd70bae142e41f3c21338a8e5aaf52afff40b38.zip |
Remove unused persistent option.
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/digestor_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionview/test/template/digestor_test.rb b/actionview/test/template/digestor_test.rb index 97e3c6e7b9..24bc76cbbb 100644 --- a/actionview/test/template/digestor_test.rb +++ b/actionview/test/template/digestor_test.rb @@ -219,7 +219,7 @@ class TemplateDigestorTest < ActionView::TestCase end def test_variants - assert_digest_difference("messages/new", false, variants: [:iphone]) do + assert_digest_difference("messages/new", variants: [:iphone]) do change_template("messages/new", :iphone) change_template("messages/_header", :iphone) end @@ -281,9 +281,9 @@ class TemplateDigestorTest < ActionView::TestCase end end - def assert_digest_difference(template_name, persistent = false, options = {}) + def assert_digest_difference(template_name, options = {}) previous_digest = digest(template_name, options) - ActionView::Digestor.cache.clear unless persistent + ActionView::Digestor.cache.clear yield |