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:
Neeraj Singh
2011-06-08 20:22:13 -04:00
parent 54b0aeba64
commit 277eb05733

View File

@@ -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