For testing layouts which are set automatically

Methods
I
W
Instance Public methods
index()
# File actionpack/test/controller/mime_responds_test.rb, line 1105
def index
  respond_to(:html, :iphone, :js)
end
Instance Protected methods
with_iphone()
# File actionpack/test/controller/mime_responds_test.rb, line 1111
def with_iphone
  request.format = "iphone" if request.env["HTTP_ACCEPT"] == "text/iphone"
  yield
end