Forum: Ruby on Rails Functional tests use 'test.host' whereas integration tests u

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Pat M. (Guest)
on 2006-04-03 16:50
(Received via mailing list)
I just added my first integration test, and noticed that it uses
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 as the host name?

Pat
Rick O. (Guest)
on 2006-04-03 17:18
(Received via mailing list)
On 4/3/06, Pat M. <removed_email_address@domain.invalid> wrote:
> I just added my first integration test, and noticed that it uses
> 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 as the host name?
>
> Pat

@request.host = 'www.example.com'

--
Rick O.
http://techno-weenie.net
This topic is locked and can not be replied to.