diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-17 11:47:54 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-17 11:47:54 +0000 |
commit | 72c51356c5e59c73710ee5f3feba57b52a38af81 (patch) | |
tree | 77a3b0cd546cf919f7e405dd5d3af86fe9aeeaa8 /actionpack/lib/action_controller/assertions.rb | |
parent | dca7efa67ec12b986ed03844af588055c9d8bdb9 (diff) | |
download | rails-72c51356c5e59c73710ee5f3feba57b52a38af81.tar.gz rails-72c51356c5e59c73710ee5f3feba57b52a38af81.tar.bz2 rails-72c51356c5e59c73710ee5f3feba57b52a38af81.zip |
Hide the deprecated methods from the docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/assertions.rb')
-rw-r--r-- | actionpack/lib/action_controller/assertions.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/assertions.rb b/actionpack/lib/action_controller/assertions.rb index ff6d88fcb2..38d551bca2 100644 --- a/actionpack/lib/action_controller/assertions.rb +++ b/actionpack/lib/action_controller/assertions.rb @@ -59,8 +59,8 @@ module Test #:nodoc: end end - # Asserts that the request was rendered with the appropriate template file - def assert_template(expected=nil, message=nil) + # Asserts that the request was rendered with the appropriate template file. + def assert_template(expected = nil, message=nil) rendered = expected ? @response.rendered_file(!expected.include?('/')) : @response.rendered_file msg = build_message(message, "expecting <?> but rendering with <?>", expected, rendered) assert_block(msg) do @@ -72,10 +72,6 @@ module Test #:nodoc: end end - alias_method :assert_rendered_file, :assert_template #:nodoc: - - # -- routing assertions -------------------------------------------------- - # Asserts that the routing of the given path is handled correctly and that the parsed options match. def assert_recognizes(expected_options, path, extras={}, message=nil) # Load routes.rb if it hasn't been loaded. |