diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2011-06-08 20:22:13 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2011-06-08 20:22:13 -0400 |
commit | 277eb057336bd8a7f7bd0aa9fee28dd85c25616c (patch) | |
tree | ac9793fd2a664354debc7b38e6cd42a8657a688a | |
parent | 54b0aeba64db8c52ac8c6cda2aaa81d8717b8549 (diff) | |
download | rails-277eb057336bd8a7f7bd0aa9fee28dd85c25616c.tar.gz rails-277eb057336bd8a7f7bd0aa9fee28dd85c25616c.tar.bz2 rails-277eb057336bd8a7f7bd0aa9fee28dd85c25616c.zip |
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.
-rw-r--r-- | actionpack/test/abstract/layouts_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/actionpack/test/abstract/layouts_test.rb b/actionpack/test/abstract/layouts_test.rb index 5ed6aa68b5..86208899f8 100644 --- a/actionpack/test/abstract/layouts_test.rb +++ b/actionpack/test/abstract/layouts_test.rb @@ -87,18 +87,6 @@ module AbstractControllerTests 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 |