aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/compiled_templates_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-11-27 18:59:33 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-11-27 18:59:33 +0100
commit6fa9957e0e83f327aaffe34679a5752fc2343fae (patch)
tree83b606852608845853fc5a005949812dfa5160d6 /actionpack/test/template/compiled_templates_test.rb
parentf2ee056873b84f8917e72d87181e1a9f5f653342 (diff)
parent4d910b033379727e5e7355590c50c72fc75e56db (diff)
downloadrails-6fa9957e0e83f327aaffe34679a5752fc2343fae.tar.gz
rails-6fa9957e0e83f327aaffe34679a5752fc2343fae.tar.bz2
rails-6fa9957e0e83f327aaffe34679a5752fc2343fae.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'actionpack/test/template/compiled_templates_test.rb')
-rw-r--r--actionpack/test/template/compiled_templates_test.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/actionpack/test/template/compiled_templates_test.rb b/actionpack/test/template/compiled_templates_test.rb
index f7688b2072..0b3d039409 100644
--- a/actionpack/test/template/compiled_templates_test.rb
+++ b/actionpack/test/template/compiled_templates_test.rb
@@ -30,15 +30,6 @@ uses_mocha 'TestTemplateRecompilation' do
assert_equal "Hello world!", render(:file => "test/hello_world.erb")
end
- def test_compiled_template_will_always_be_recompiled_when_eager_loaded_templates_is_off
- ActionView::PathSet::Path.expects(:eager_load_templates?).times(4).returns(false)
- assert_equal 0, @compiled_templates.instance_methods.size
- assert_equal "Hello world!", render(:file => "#{FIXTURE_LOAD_PATH}/test/hello_world.erb")
- ActionView::Template.any_instance.expects(:compile!).times(3)
- 3.times { assert_equal "Hello world!", render(:file => "#{FIXTURE_LOAD_PATH}/test/hello_world.erb") }
- assert_equal 1, @compiled_templates.instance_methods.size
- end
-
private
def render(*args)
ActionView::Base.new(ActionController::Base.view_paths, {}).render(*args)