class ApplicationTests::RoutingTest
Constants
- InitializeRackApp
Public Instance Methods
setup()
click to toggle source
# File railties/test/application/rendering_test.rb, line 11 def setup build_app end
teardown()
click to toggle source
# File railties/test/application/rendering_test.rb, line 15 def teardown teardown_app end
test_root_path()
click to toggle source
# File railties/test/application/routing_test.rb, line 379 def test_root_path app("development") controller :foo, <<-RUBY class FooController < ApplicationController def index render plain: "foo" end end RUBY app_file "config/routes.rb", <<-RUBY Quails.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