From 973b278598d0652c5563a164a268d384f4eac537 Mon Sep 17 00:00:00 2001
From: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com>
Date: Tue, 21 Aug 2012 17:37:52 -0300
Subject: 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.
---
 railties/test/application/middleware/remote_ip_test.rb | 14 --------------
 1 file changed, 14 deletions(-)

(limited to 'railties')

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!(
-- 
cgit v1.2.3