diff options
author | Kent Sibilev <ksibilev@gmail.com> | 2006-09-03 23:55:12 +0000 |
---|---|---|
committer | Kent Sibilev <ksibilev@gmail.com> | 2006-09-03 23:55:12 +0000 |
commit | 9b18c1cb5768b0777b16bccdbfc3891a86af4558 (patch) | |
tree | becd01f8eee2a253de972b9601b92a08b6dbdbe7 /actionwebservice/test/scaffolded_controller_test.rb | |
parent | c8106881068d8313aef54935099d51319795e249 (diff) | |
download | rails-9b18c1cb5768b0777b16bccdbfc3891a86af4558.tar.gz rails-9b18c1cb5768b0777b16bccdbfc3891a86af4558.tar.bz2 rails-9b18c1cb5768b0777b16bccdbfc3891a86af4558.zip |
Shouldn't use deprecated stuff
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4957 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/test/scaffolded_controller_test.rb')
-rw-r--r-- | actionwebservice/test/scaffolded_controller_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionwebservice/test/scaffolded_controller_test.rb b/actionwebservice/test/scaffolded_controller_test.rb index 123a7043eb..c339c81647 100644 --- a/actionwebservice/test/scaffolded_controller_test.rb +++ b/actionwebservice/test/scaffolded_controller_test.rb @@ -73,29 +73,29 @@ class ScaffoldedControllerTest < Test::Unit::TestCase def test_scaffold_invoke get :scaffold_invoke - assert_rendered_file 'methods.rhtml' + assert_template 'methods.rhtml' end def test_scaffold_invoke_method_params get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'Hello' - assert_rendered_file 'parameters.rhtml' + assert_template 'parameters.rhtml' end def test_scaffold_invoke_method_params_with_struct get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'HelloStructParam' - assert_rendered_file 'parameters.rhtml' + assert_template 'parameters.rhtml' assert_tag :tag => 'input', :attributes => {:name => "method_params[0][name]"} end def test_scaffold_invoke_submit_hello post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'Hello', :method_params => {'0' => '5', '1' => 'hello world'} - assert_rendered_file 'result.rhtml' + assert_template 'result.rhtml' assert_equal false, @controller.instance_eval{ @method_return_value } end def test_scaffold_invoke_submit_bye post :scaffold_invoke_submit, :service => 'scaffolded', :method => 'Bye' - assert_rendered_file 'result.rhtml' + assert_template 'result.rhtml' persons = [ScaffoldPerson.new(:id => 1, :name => "leon"), ScaffoldPerson.new(:id => 2, :name => "paul")] assert_equal persons, @controller.instance_eval{ @method_return_value } end |