Permalink
Browse files

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.
  • Loading branch information...
1 parent b85894e commit 973b278598d0652c5563a164a268d384f4eac537 @carlosantoniodasilva carlosantoniodasilva committed Aug 21, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −14 railties/test/application/middleware/remote_ip_test.rb
View
14 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!(

0 comments on commit 973b278

Please sign in to comment.