diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-03 21:05:51 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-03 21:05:51 -0500 |
commit | 018b79dd36d054d87fdc408d38dc9ac7f1b1500d (patch) | |
tree | a954ecef58682b2d259432a04ce503f8bb865840 /actionpack/test/new_base/render_partial_test.rb | |
parent | 84e94551f62d3bcbc71f1c6f3fda738342d984e2 (diff) | |
download | rails-018b79dd36d054d87fdc408d38dc9ac7f1b1500d.tar.gz rails-018b79dd36d054d87fdc408d38dc9ac7f1b1500d.tar.bz2 rails-018b79dd36d054d87fdc408d38dc9ac7f1b1500d.zip |
File extra test folders into controller, dispatch, or template
Diffstat (limited to 'actionpack/test/new_base/render_partial_test.rb')
-rw-r--r-- | actionpack/test/new_base/render_partial_test.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/actionpack/test/new_base/render_partial_test.rb b/actionpack/test/new_base/render_partial_test.rb deleted file mode 100644 index 7c2c20e1c7..0000000000 --- a/actionpack/test/new_base/render_partial_test.rb +++ /dev/null @@ -1,27 +0,0 @@ -require 'abstract_unit' - -module RenderPartial - - class BasicController < ActionController::Base - - self.view_paths = [ActionView::FixtureResolver.new( - "render_partial/basic/_basic.html.erb" => "OMG!", - "render_partial/basic/basic.html.erb" => "<%= @test_unchanged = 'goodbye' %><%= render :partial => 'basic' %><%= @test_unchanged %>" - )] - - def changing - @test_unchanged = 'hello' - render :action => "basic" - end - end - - class TestPartial < SimpleRouteCase - testing BasicController - - test "rendering a partial in ActionView doesn't pull the ivars again from the controller" do - get :changing - assert_response("goodbyeOMG!goodbye") - end - end - -end |