Permalink
Browse files

rename test case to better describe use case

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent f2fc921 commit 8d00dfca7f6ea528ed5344b6cc1058c9f0402361 @dchelimsky dchelimsky committed with josevalim Apr 23, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/test/controller/view_paths_test.rb
View
12 actionpack/test/controller/view_paths_test.rb
@@ -131,16 +131,16 @@ def test_view_paths_override_at_request_time
assert_equal "Hello overridden world!", @response.body
end
- def test_override_view_paths_with_custom_resolver
- resolver_class = Class.new(ActionView::PathResolver) do
+ def test_decorate_view_paths_with_custom_resolver
+ decorator_class = Class.new(ActionView::PathResolver) do
def initialize(path_set)
@path_set = path_set
end
def find_all(*args)
@path_set.find_all(*args).collect do |template|
::ActionView::Template.new(
- "Customized body",
+ "Decorated body",
template.identifier,
template.handler,
{
@@ -152,12 +152,12 @@ def find_all(*args)
end
end
- resolver = resolver_class.new(TestController.view_paths)
- TestController.view_paths = ActionView::PathSet.new.push(resolver)
+ decorator = decorator_class.new(TestController.view_paths)
+ TestController.view_paths = ActionView::PathSet.new.push(decorator)
get :hello_world
assert_response :success
- assert_equal "Customized body", @response.body
+ assert_equal "Decorated body", @response.body
end
def test_inheritance

0 comments on commit 8d00dfc

Please sign in to comment.