mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] using correcting test case names specifying rails routes
instead of rake routes
This commit is contained in:
parent
86071a4049
commit
c91fda40ac
1 changed files with 6 additions and 6 deletions
|
@ -122,7 +122,7 @@ module ApplicationTests
|
|||
Dir.chdir(app_path){ `bin/rails stats` }
|
||||
end
|
||||
|
||||
def test_rake_routes_calls_the_route_inspector
|
||||
def test_rails_routes_calls_the_route_inspector
|
||||
app_file "config/routes.rb", <<-RUBY
|
||||
Rails.application.routes.draw do
|
||||
get '/cart', to: 'cart#show'
|
||||
|
@ -133,7 +133,7 @@ module ApplicationTests
|
|||
assert_equal "Prefix Verb URI Pattern Controller#Action\n cart GET /cart(.:format) cart#show\n", output
|
||||
end
|
||||
|
||||
def test_rake_routes_with_controller_environment
|
||||
def test_rails_routes_with_controller_environment
|
||||
app_file "config/routes.rb", <<-RUBY
|
||||
Rails.application.routes.draw do
|
||||
get '/cart', to: 'cart#show'
|
||||
|
@ -151,7 +151,7 @@ module ApplicationTests
|
|||
assert_equal "Prefix Verb URI Pattern Controller#Action\n cart GET /cart(.:format) cart#show\n", output
|
||||
end
|
||||
|
||||
def test_rake_routes_with_namespaced_controller_environment
|
||||
def test_rails_routes_with_namespaced_controller_environment
|
||||
app_file "config/routes.rb", <<-RUBY
|
||||
Rails.application.routes.draw do
|
||||
namespace :admin do
|
||||
|
@ -175,7 +175,7 @@ module ApplicationTests
|
|||
assert_equal expected_output, output
|
||||
end
|
||||
|
||||
def test_rake_routes_with_global_search_key
|
||||
def test_rails_routes_with_global_search_key
|
||||
app_file "config/routes.rb", <<-RUBY
|
||||
Rails.application.routes.draw do
|
||||
get '/cart', to: 'cart#show'
|
||||
|
@ -195,7 +195,7 @@ module ApplicationTests
|
|||
"basketballs GET /basketballs(.:format) basketball#index\n", output
|
||||
end
|
||||
|
||||
def test_rake_routes_with_controller_search_key
|
||||
def test_rails_routes_with_controller_search_key
|
||||
app_file "config/routes.rb", <<-RUBY
|
||||
Rails.application.routes.draw do
|
||||
get '/cart', to: 'cart#show'
|
||||
|
@ -213,7 +213,7 @@ module ApplicationTests
|
|||
assert_equal "Prefix Verb URI Pattern Controller#Action\n cart GET /cart(.:format) cart#show\n", output
|
||||
end
|
||||
|
||||
def test_rake_routes_displays_message_when_no_routes_are_defined
|
||||
def test_rails_routes_displays_message_when_no_routes_are_defined
|
||||
app_file "config/routes.rb", <<-RUBY
|
||||
Rails.application.routes.draw do
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue