diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-08-21 17:37:52 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-08-21 17:37:52 -0300 |
commit | 973b278598d0652c5563a164a268d384f4eac537 (patch) | |
tree | f56d9ebeaff1d4bc0d075cbab8cb7a98ee04fef9 /railties | |
parent | b85894e854d09b2e4c00c06cc4f1077fd6c3c31d (diff) | |
download | rails-973b278598d0652c5563a164a268d384f4eac537.tar.gz rails-973b278598d0652c5563a164a268d384f4eac537.tar.bz2 rails-973b278598d0652c5563a164a268d384f4eac537.zip |
Remove app building setup/teardown for remote ip railtie tests
These tests rely on "make_basic_app", which is a faster version that
does not need to create the whole app directory structure.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/middleware/remote_ip_test.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/railties/test/application/middleware/remote_ip_test.rb b/railties/test/application/middleware/remote_ip_test.rb index 066f0c1c84..9d97bae9ae 100644 --- a/railties/test/application/middleware/remote_ip_test.rb +++ b/railties/test/application/middleware/remote_ip_test.rb @@ -4,20 +4,6 @@ module ApplicationTests class RemoteIpTest < ActiveSupport::TestCase include ActiveSupport::Testing::Isolation - def setup - build_app - boot_rails - FileUtils.rm_rf "#{app_path}/config/environments" - end - - def teardown - teardown_app - end - - def app - @app ||= Rails.application - end - def remote_ip(env = {}) remote_ip = nil env = Rack::MockRequest.env_for("/").merge(env).merge!( |