diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-07-31 16:25:39 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-07-31 16:25:39 +0900 |
commit | e3fc35b5d68b66d5fa165baf69bf76c1110bb512 (patch) | |
tree | 86cfc9ab183beee528bb75153af04227ce83127f /railties | |
parent | 815b730b1b79158511f9f4c8465c476b9fe9b7e0 (diff) | |
download | rails-e3fc35b5d68b66d5fa165baf69bf76c1110bb512.tar.gz rails-e3fc35b5d68b66d5fa165baf69bf76c1110bb512.tar.bz2 rails-e3fc35b5d68b66d5fa165baf69bf76c1110bb512.zip |
remove unnecessary require and extend
`rack/test` is require at the top of file.
https://github.com/rails/rails/blob/master/railties/test/railties/engine_test.rb#L3
In addtion, `Rack::Test::Methods` is include in class, extend is unnecessary.
https://github.com/rails/rails/blob/master/railties/test/railties/engine_test.rb#L9
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/railties/engine_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index 0eaa5bc351..fb8de84e1b 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -36,8 +36,6 @@ module RailtiesTest 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 @@ module RailtiesTest 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 @@ module RailtiesTest RUBY boot_rails - require 'rack/test' - extend Rack::Test::Methods get '/foo' assert_equal 'foo', last_response.body @@ -449,8 +443,6 @@ YAML RUBY boot_rails - require 'rack/test' - extend Rack::Test::Methods get "/admin/foo/bar" assert_equal 200, last_response.status |