mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user