mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #26004 from y-yagi/remove_unnecessary_require_and_extend
remove unnecessary require and extend
This commit is contained in:
commit
7732cf5b0f
1 changed files with 0 additions and 8 deletions
|
@ -36,8 +36,6 @@ module RailtiesTest
|
||||||
add_to_env_config "development", "config.assets.digest = false"
|
add_to_env_config "development", "config.assets.digest = false"
|
||||||
|
|
||||||
boot_rails
|
boot_rails
|
||||||
require 'rack/test'
|
|
||||||
extend Rack::Test::Methods
|
|
||||||
|
|
||||||
get "/assets/engine.js"
|
get "/assets/engine.js"
|
||||||
assert_match "alert()", last_response.body
|
assert_match "alert()", last_response.body
|
||||||
|
@ -321,8 +319,6 @@ module RailtiesTest
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
boot_rails
|
boot_rails
|
||||||
require 'rack/test'
|
|
||||||
extend Rack::Test::Methods
|
|
||||||
|
|
||||||
get "/sprokkit"
|
get "/sprokkit"
|
||||||
assert_equal "I am a Sprokkit", last_response.body
|
assert_equal "I am a Sprokkit", last_response.body
|
||||||
|
@ -359,8 +355,6 @@ module RailtiesTest
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
boot_rails
|
boot_rails
|
||||||
require 'rack/test'
|
|
||||||
extend Rack::Test::Methods
|
|
||||||
|
|
||||||
get '/foo'
|
get '/foo'
|
||||||
assert_equal 'foo', last_response.body
|
assert_equal 'foo', last_response.body
|
||||||
|
@ -449,8 +443,6 @@ YAML
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
boot_rails
|
boot_rails
|
||||||
require 'rack/test'
|
|
||||||
extend Rack::Test::Methods
|
|
||||||
|
|
||||||
get "/admin/foo/bar"
|
get "/admin/foo/bar"
|
||||||
assert_equal 200, last_response.status
|
assert_equal 200, last_response.status
|
||||||
|
|
Loading…
Reference in a new issue