Methods
S
T
Included Modules
Constants
InitializeRackApp = lambda { |env| [200, {}, ["InitializeRackApp"]] }
 
Instance Public methods
setup()
# File railties/test/application/rendering_test.rb, line 9
def setup
  build_app
  boot_rails
end
teardown()
# File railties/test/application/rendering_test.rb, line 14
def teardown
  teardown_app
end
test_root_path()
# File railties/test/application/routing_test.rb, line 330
def test_root_path
  app('development')

  controller :foo, <<-RUBY
    class FooController < ApplicationController
      def index
        render :text => "foo"
      end
    end
  RUBY

  app_file 'config/routes.rb', <<-RUBY
    Rails.application.routes.draw do
      get 'foo', :to => 'foo#index'
      root :to => 'foo#index'
    end
  RUBY

  remove_file 'public/index.html'

  get '/'
  assert_equal 'foo', last_response.body
end