1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Carlos Antonio da Silva 2012-08-21 17:37:52 -03:00
parent b85894e854
commit 973b278598

View file

@ -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!(