提交 7732cf5b 编写于 作者: S Santiago Pastorino 提交者: GitHub

Merge pull request #26004 from y-yagi/remove_unnecessary_require_and_extend

remove unnecessary require and extend
......@@ -36,8 +36,6 @@ def boot_rails
add_to_env_config "development", "config.assets.digest = false"
boot_rails
require 'rack/test'
extend Rack::Test::Methods
get "/assets/engine.js"
assert_match "alert()", last_response.body
......@@ -321,8 +319,6 @@ def self.call(env)
RUBY
boot_rails
require 'rack/test'
extend Rack::Test::Methods
get "/sprokkit"
assert_equal "I am a Sprokkit", last_response.body
......@@ -359,8 +355,6 @@ def index
RUBY
boot_rails
require 'rack/test'
extend Rack::Test::Methods
get '/foo'
assert_equal 'foo', last_response.body
......@@ -449,8 +443,6 @@ def index
RUBY
boot_rails
require 'rack/test'
extend Rack::Test::Methods
get "/admin/foo/bar"
assert_equal 200, last_response.status
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册