[rspec-users] Testing Sub-domains with Cucumber

Matt Wynne matt at mattwynne.net
Wed Jan 28 10:58:55 EST 2009


On 28 Jan 2009, at 14:32, Juanma Cervera wrote:

> Jonathan Linowes wrote:
>> On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote:
>> for example,
>>
>> Given /^a "(.+)" account$/ do |name|
>>   account = Account.create( :name => name )
>>   host! "#{account.to_param}.example.com"
>> end
>
> Can somebody point me to the documentation of host!, or explain what  
> is
> it.

http://apidock.com/rails/ActionController/Integration/Session/host!

Matt Wynne
http://blog.mattwynne.net
http://www.songkick.com



More information about the rspec-users mailing list