# Functional tests use 'test.host' whereas integration tests u

**URL:** <https://www.ruby-forum.com/t/functional-tests-use-test-host-whereas-integration-tests-u/93445>\
**Category:** Rails\
**Created:** [April 3, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/functional-tests-use-test-host-whereas-integration-tests-u/93445 "2006-04-03T14:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [April 3, 2006, 2:50pm UTC](https://www.ruby-forum.com/t/functional-tests-use-test-host-whereas-integration-tests-u/93445/1 "2006-04-03T14:50:29Z")

</div>

I just added my first integration test, and noticed that it uses  
[www.example.com](http://www.example.com) as the domain name. Functional tests, on the other  
hand, use test.host. I only found this out because I’m actually  
checking the domain name in requests. Apparently the DSL I create in  
the integration test should then become available to the rest of the  
functional tests…but I need the host name to be the same. How can I  
make functional tests use [www.example.com](http://www.example.com) as the host name?

Pat

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [April 3, 2006, 3:18pm UTC](https://www.ruby-forum.com/t/functional-tests-use-test-host-whereas-integration-tests-u/93445/2 "2006-04-03T15:18:28Z")

</div>

On 4/3/06, Pat M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I just added my first integration test, and noticed that it uses  
> [www.example.com](http://www.example.com) as the domain name. Functional tests, on the other  
> hand, use test.host. I only found this out because I’m actually  
> checking the domain name in requests. Apparently the DSL I create in  
> the integration test should then become available to the rest of the  
> functional tests…but I need the host name to be the same. How can I  
> make functional tests use [www.example.com](http://www.example.com) as the host name?
> 
> Pat

@request.host = ‘[www.example.com](http://www.example.com)’

–  
Rick O.  
[http://techno-weenie.net](http://techno-weenie.net)
