Permalink
Browse files

class WithSymbolReturningString is not used anywhere in the test.

Secondly it seemed from the method that the intent was to test a case
where layout was declared in a symbol and the method named mention in
layout returns nil.

That case is already covered with class     class WithSymbolReturningNil .

Also the case of SymbolReturningString is covered with the class
WithSymbol.
  • Loading branch information...
1 parent 54b0aeb commit 277eb057336bd8a7f7bd0aa9fee28dd85c25616c Neeraj Singh committed Jun 9, 2011
Showing with 0 additions and 12 deletions.
  1. +0 −12 actionpack/test/abstract/layouts_test.rb
@@ -87,18 +87,6 @@ def hello
end
end
- class WithSymbolReturningString < Base
- layout :no_hello
-
- def index
- render :template => ActionView::Template::Text.new("Hello missing symbol!")
- end
- private
- def no_hello
- nil
- end
- end
-
class WithSymbolReturningNil < Base
layout :nilz

0 comments on commit 277eb05

Please sign in to comment.