mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use example.com as standard (closes #4413) [anna]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4026 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
7bcf4c6659
commit
9326222941
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ module ActionController
|
||||||
@cookies = {}
|
@cookies = {}
|
||||||
@controller = @request = @response = nil
|
@controller = @request = @response = nil
|
||||||
|
|
||||||
self.host = "www.example.test"
|
self.host = "www.example.com"
|
||||||
self.remote_addr = "127.0.0.1"
|
self.remote_addr = "127.0.0.1"
|
||||||
self.accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
|
self.accept = "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ module ActionController
|
||||||
|
|
||||||
# Set the host name to use in the next request.
|
# Set the host name to use in the next request.
|
||||||
#
|
#
|
||||||
# session.host! "www.example.test"
|
# session.host! "www.example.com"
|
||||||
def host!(name)
|
def host!(name)
|
||||||
@host = name
|
@host = name
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,7 +8,7 @@ Test::Unit.run = true
|
||||||
def app(create=false)
|
def app(create=false)
|
||||||
@app_integration_instance = nil if create
|
@app_integration_instance = nil if create
|
||||||
@app_integration_instance ||= new_session do |sess|
|
@app_integration_instance ||= new_session do |sess|
|
||||||
sess.host! "www.example.test"
|
sess.host! "www.example.com"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue