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:
parent
b85894e854
commit
973b278598
1 changed files with 0 additions and 14 deletions
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue