From 277eb057336bd8a7f7bd0aa9fee28dd85c25616c Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Wed, 8 Jun 2011 20:22:13 -0400 Subject: 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. --- actionpack/test/abstract/layouts_test.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'actionpack/test/abstract') 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 -- cgit v1.2.3