diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-04-29 12:19:17 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-05-01 17:31:01 -0700 |
commit | 4f68311685831b940936130203c240fa23525c84 (patch) | |
tree | 5fc1192c04bdef4b198a92c511f2a7a5d0e09bc3 /actionpack/test/new_base/render_test.rb | |
parent | 1b459916039259383808625d1758a8bc4a4516d9 (diff) | |
download | rails-4f68311685831b940936130203c240fa23525c84.tar.gz rails-4f68311685831b940936130203c240fa23525c84.tar.bz2 rails-4f68311685831b940936130203c240fa23525c84.zip |
Finished implementing render :text in Base2
Diffstat (limited to 'actionpack/test/new_base/render_test.rb')
-rw-r--r-- | actionpack/test/new_base/render_test.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/actionpack/test/new_base/render_test.rb b/actionpack/test/new_base/render_test.rb new file mode 100644 index 0000000000..9ad79124b8 --- /dev/null +++ b/actionpack/test/new_base/render_test.rb @@ -0,0 +1,20 @@ +require File.join(File.expand_path(File.dirname(__FILE__)), "test_helper") + +module Render + class DoubleRenderController < ActionController::Base2 + def index + render :text => "hello" + render :text => "world" + end + end + + class TestBasic < SimpleRouteCase + describe "Rendering more than once" + + test "raises an exception" do + assert_raises(AbstractController::DoubleRenderError) do + get "/render/double_render" + end + end + end +end
\ No newline at end of file |