search for: odupuis

Displaying 2 results from an estimated 2 matches for "odupuis".

Did you mean: dupuis
2007 Nov 30
4
Rendering a view and passing a variable
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&ccedil;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 : it
2007 Nov 28
2
Testing cookies
Hello, Here''s a test I wrote for cookies: it "should change language when params[:id] is present" do cookies[:thothle_language] = ''e'' get ''index'', :id => ''f'' response.cookies["thothle_language"].should equal(''f'') end The error I get is the following: ...expected