aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2005-09-27 16:45:39 +0000
committerNicholas Seckar <nseckar@gmail.com>2005-09-27 16:45:39 +0000
commit564077373daac93fb5fa895ab2550f2be6042da1 (patch)
treebbd81de7dcc3a0791a950bb67d7790362c610e22 /actionpack/test
parent64937891c71b56b3616e0f6cec01bb5d44463958 (diff)
downloadrails-564077373daac93fb5fa895ab2550f2be6042da1.tar.gz
rails-564077373daac93fb5fa895ab2550f2be6042da1.tar.bz2
rails-564077373daac93fb5fa895ab2550f2be6042da1.zip
Streamline render process, code cleaning. Closes #2294.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/custom_handler_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/custom_handler_test.rb b/actionpack/test/controller/custom_handler_test.rb
index 38e675ffed..8b9cdb0c26 100644
--- a/actionpack/test/controller/custom_handler_test.rb
+++ b/actionpack/test/controller/custom_handler_test.rb
@@ -19,15 +19,15 @@ class CustomHandlerTest < Test::Unit::TestCase
end
def test_custom_render
- result = @view.render_template( "foo", "hello <%= one %>", nil, "one" => "two" )
+ result = @view.render_template( "foo", "hello <%= one %>", nil, :one => "two" )
assert_equal(
- [ "hello <%= one %>", { "one" => "two" }, @view ],
+ [ "hello <%= one %>", { :one => "two" }, @view ],
result )
end
def test_unhandled_extension
# uses the ERb handler by default if the extension isn't recognized
- result = @view.render_template( "bar", "hello <%= one %>", nil, "one" => "two" )
+ result = @view.render_template( "bar", "hello <%= one %>", nil, :one => "two" )
assert_equal "hello two", result
end
end