Displaying 4 results from an estimated 4 matches for "assert_redirect".
2007 Nov 30
0
Rails test helpers
Hey guys-
I started a module for Rails test helpers. The first one is
assert_fb_redirect. This is like Rails'' assert_redirect, but works
for the fb:redirect FBML tag.
Any ideas for more? I was thinking about a version of assert_select
that works with Facebook. assert_select is based on CSS selectors,
which won''t work with Facebook since the use of colons (:) in search
queries conflicts with colons in FBML tags....
2005 May 18
10
Salted Login Generator issues
Hello all,
I''ve just installed and begun to integrate the salted login generator.
So far I''m very impressed, though I''ve hit a few snags along the way.
Unfortunately, I''ve met the first one that I haven''t been able to
resolve on my own.
When I hit the login action, I get errors in my log files. The specific
error with trace is included below.
2006 Jun 06
14
How can I set the session in a functional test?
Hey :)
I need to simulate a login in my functional test, otherwise I can''t GET nor
POST to the action.
I need to set the session key "logged_in_user_id".
I tried this inside the setup() method:
session[''logged_in_user_id''] = 1
But that throws: TypeError: can''t convert String into Integer
Any ideas?
Thanks,
Rob
-------------- next part
2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all
Apologies to the folks subscribed to the globalize list for dual
posting this message...
I''ve got a project running globalize and rails 1.1.4, and I''ve only
recently adopted a strong love for testing. Now my models are 100%
tested (I must note that I do not make use of any translations in the
database yet), and I''ve now started with functional tests before