Run Single / One Functional Ruby on Rails Test

From the root rails directory you can run the following to run ONLY the page_controller functional test

ruby -I lib:test test/functional/page_controller_test.rb

Posted on April 2, 2009 at 9:45 am by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: , , , ,

Authenticate Facebook Connect User

Check Facebook Connect Cookies (example below)

2c24418bf8fe35ce3e56bdb81510147e_expires = 1237932000
2c24418bf8fe35ce3e56bdb81510147e_session_key = 3.giQwAnobPPDTc84_y7zuug__.86400.1237932000-705926010
2c24418bf8fe35ce3e56bdb81510147e_ss = x0mM2T_o9B3YG7TfhLGoQQ__
2c24418bf8fe35ce3e56bdb81510147e_user = 7059246010
2c24418bf8fe35ce3e56bdb81510147e = 6aba0f0fc1f6c3fc0f2f477e9b0b0f93

Remove APP_ID from front of all FB cookies
Store FB user_id, session_key and Expected MD5 Hash.  MD5 Hash is the cookie without the extra stuff after the APP_ID (Last in list above)
Strip APP_ID from all cookies and store as key=value in [...]

Posted on March 24, 2009 at 9:48 am by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: , , , ,