Methods
S
T
Instance Public methods
setup()
# File rails/actionpack/test/controller/addresses_render_test.rb, line 28
def setup
  @controller = AddressesTestController.new

  # enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
  # a more accurate simulation of what happens in "real life".
  @controller.logger = Logger.new(nil)

  @request    = ActionController::TestRequest.new
  @response   = ActionController::TestResponse.new

  @request.host = "www.nextangle.com"
end
test_list()
# File rails/actionpack/test/controller/addresses_render_test.rb, line 41
def test_list
  # because pagination is deprecated
  ActiveSupport::Deprecation.silence do
    get :list
  end
  assert_equal "We only need to get this far!", @response.body.chomp
end