diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-02 15:00:22 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-03 11:18:57 -0700 |
commit | f3fc5c4b5f36db37edc8ab553a35b06b48226c0a (patch) | |
tree | 9d35e907f3ed525f251a78f7579406f82eadf7a1 /actionpack/test/template/compiled_templates_test.rb | |
parent | dd34691b8d04a41e7d2b34df96bfe849057dd093 (diff) | |
download | rails-f3fc5c4b5f36db37edc8ab553a35b06b48226c0a.tar.gz rails-f3fc5c4b5f36db37edc8ab553a35b06b48226c0a.tar.bz2 rails-f3fc5c4b5f36db37edc8ab553a35b06b48226c0a.zip |
Refactor ActionView::Resolver
Diffstat (limited to 'actionpack/test/template/compiled_templates_test.rb')
-rw-r--r-- | actionpack/test/template/compiled_templates_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/compiled_templates_test.rb b/actionpack/test/template/compiled_templates_test.rb index 7734e6da73..632988bb2e 100644 --- a/actionpack/test/template/compiled_templates_test.rb +++ b/actionpack/test/template/compiled_templates_test.rb @@ -14,6 +14,9 @@ class CompiledTemplatesTest < Test::Unit::TestCase assert_equal "two", render(:file => "test/render_file_with_locals_and_default.erb", :locals => { :secret => "two" }) end + # This is broken in 1.8.6 (not supported in Rails 3.0) because the cache uses a Hash + # key. Since Ruby 1.8.6 implements Hash#hash using the hash's object_id, it will never + # successfully get a cache hit here. def test_template_changes_are_not_reflected_with_cached_templates assert_equal "Hello world!", render(:file => "test/hello_world.erb") modify_template "test/hello_world.erb", "Goodbye world!" do |