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 docu
Jonathan Linowes wrote:
> On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote:
>
>> Posted via http://www.ruby-forum.com/.
>> ___
>> rspec-users mailing list
>> rspec-users@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>
>
> for example,
On Jan 14, 2009, at 11:39 AM, Tom Hoen wrote:
Jonathan Linowes wrote:
I do:
host! "#{account.to_param}.example.com"
--linoj
linoj - thanks for the info. Where do you put this?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing lis
Jonathan Linowes wrote:
> I do:
>
> host! "#{account.to_param}.example.com"
>
> --linoj
linoj - thanks for the info. Where do you put this?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyfo
On Tue, Jan 13, 2009 at 8:46 PM, Tom Hoen wrote:
>
> When I say 'visits "/login"' in a step, I want it to have know to go to
> harvey.localhost:3000 for this feature/scenario. In another
> feature/scenario, I will want it to go to humbel.localhost:3000 etc.
Have you tried telling it "visits http:
On Jan 13, 2009, at 8:46 PM, Tom Hoen wrote:
My site uses sub-domains to create a context for the user. In my
tests,
I need to stipulate what domain is being used, to test whether the
context is correct for the given user.
But I cannot find if and where i can change the request.host value, i
Matt Wynne wrote:
>
> Are we on rails here, or something else? You might be better asking on
> the webrat list (google group - check the webrat readme for details)
> or IRC, to be honest.
>
Thanks Matt, I will send a message to the webrat group. It is rails, so
I have the same issue with view
On 14 Jan 2009, at 01:46, Tom Hoen wrote:
My site uses sub-domains to create a context for the user. In my
tests,
I need to stipulate what domain is being used, to test whether the
context is correct for the given user.
But I cannot find if and where i can change the request.host value, if
i