Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread David Chelimsky
;re there, you should always feel free to ask. Cheers, David > > Olivier > > > > -Original Message- > From: [EMAIL PROTECTED] on behalf of David Chelimsky > Sent: Thu 11/29/2007 9:29 PM > To: rspec-users > Subject: Re: [rspec-users] Rendering a view and passing

Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread Olivier Dupuis
Thanks again David! Sorry for the easy question. I should have looked more carefully at the documentation. Olivier -Original Message- From: [EMAIL PROTECTED] on behalf of David Chelimsky Sent: Thu 11/29/2007 9:29 PM To: rspec-users Subject: Re: [rspec-users] Rendering a view and

Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread Shane Mingins
don't you have to do ... assigns[:language] = @language On 30/11/2007, at 3:29 PM, Olivier Dupuis wrote: Hello all, I have a view which display html based on the value of a variable. Here's the code : <% if @language == 'e' %> <%= link_to "Français", :action => :index, :id => "f" %>

Re: [rspec-users] Rendering a view and passing a variable

2007-11-29 Thread David Chelimsky
On Nov 29, 2007 8:29 PM, Olivier Dupuis <[EMAIL PROTECTED]> wrote: > > > > > Hello all, > > I have a view which display html based on the value of a variable. Here's > the code : > > <% if @language == 'e' %> ><%= link_to "Français", :action => :index, :id => "f" %> > <% end %> > > In my t

[rspec-users] Rendering a view and passing a variable

2007-11-29 Thread Olivier Dupuis
Hello all, I have a view which display html based on the value of a variable. Here's the code : <% if @language == 'e' %> <%= link_to "Français", :action => :index, :id => "f" %> <% end %> In my test, I'm trying to set the value of the variable first, but that just doesn't seem to work :