diff options
author | Carl Lerche <carllerche@mac.com> | 2009-03-20 18:38:03 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-03-23 10:23:14 -0700 |
commit | ab17ecfe5d97d5026d67688ddefe11a458701076 (patch) | |
tree | 1aa5e9ba238e0b9a2cc9e7bfc19a750ebc5ebd0b /actionpack/test/new_base/render_action_test.rb | |
parent | c6123c37030b715d088860ea1ca79060659b0e3c (diff) | |
download | rails-ab17ecfe5d97d5026d67688ddefe11a458701076.tar.gz rails-ab17ecfe5d97d5026d67688ddefe11a458701076.tar.bz2 rails-ab17ecfe5d97d5026d67688ddefe11a458701076.zip |
Finished implementing :layout for most of the render options
Diffstat (limited to 'actionpack/test/new_base/render_action_test.rb')
-rw-r--r-- | actionpack/test/new_base/render_action_test.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/test/new_base/render_action_test.rb b/actionpack/test/new_base/render_action_test.rb index a5ad78be75..99dbfb878b 100644 --- a/actionpack/test/new_base/render_action_test.rb +++ b/actionpack/test/new_base/render_action_test.rb @@ -5,6 +5,10 @@ module HappyPath # This has no layout and it works class RenderActionController < ActionController::Base2 + self.view_paths = [ActionView::FixtureTemplate::FixturePath.new( + "happy_path/render_action/hello_world.html.erb" => "Hello world!" + )] + def render_action_hello_world render :action => "hello_world" end @@ -28,33 +32,27 @@ module HappyPath end class TestRenderAction < SimpleRouteCase - describe "Rendering an action using :action => <String>" get "/happy_path/render_action/render_action_hello_world" assert_body "Hello world!" assert_status 200 - end class TestRenderActionWithString < SimpleRouteCase - describe "Render an action using 'hello_world'" get "/happy_path/render_action/render_action_hello_world_as_string" assert_body "Hello world!" assert_status 200 - end class TestRenderActionWithStringAndOptions < SimpleRouteCase - describe "Render an action using 'hello_world'" get "/happy_path/render_action/render_action_hello_world_as_string_with_options" assert_body "Hello world!" assert_status 404 - end class TestRenderActionAsSymbol < SimpleRouteCase |