aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/filters_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-24 16:45:39 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-24 16:45:39 +0000
commit4f40b2d8fbcfb437a628a353eb281553fc840728 (patch)
tree67e6d5c4ccf2eabe7644e830122f721f747f60fa /actionpack/test/controller/filters_test.rb
parent3ccea931fac2872ffb26014592c036b5d137655f (diff)
downloadrails-4f40b2d8fbcfb437a628a353eb281553fc840728.tar.gz
rails-4f40b2d8fbcfb437a628a353eb281553fc840728.tar.bz2
rails-4f40b2d8fbcfb437a628a353eb281553fc840728.zip
Improved performance of test app req/sec with ~10% refactoring the render method #1823 [Stefan Kaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/filters_test.rb')
-rw-r--r--actionpack/test/controller/filters_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb
index 5480843e22..1bd625f084 100644
--- a/actionpack/test/controller/filters_test.rb
+++ b/actionpack/test/controller/filters_test.rb
@@ -5,7 +5,7 @@ class FilterTest < Test::Unit::TestCase
before_filter :ensure_login
def show
- render_text "ran action"
+ render :inline => "ran action"
end
private
@@ -20,26 +20,26 @@ class FilterTest < Test::Unit::TestCase
def show
@ran_action = true
- render_text "ran action"
+ render :inline => "ran action"
end
private
def render_something_else
- render_text "something else"
+ render :inline => "something else"
end
end
class ConditionalFilterController < ActionController::Base
def show
- render_text "ran action"
+ render :inline => "ran action"
end
def another_action
- render_text "ran action"
+ render :inline => "ran action"
end
def show_without_filter
- render_text "ran action without filter"
+ render :inline => "ran action without filter"
end
private