rspec controller test

2 views
Skip to first unread message

joost baaij (space babies)

unread,
Aug 7, 2010, 6:36:27 AM8/7/10
to facebooker
Apologies if this question has been asked before.

I am developing a facebook app using facebooker, which is going great.
(I had to strip out respond_to logic, but I get why that is now)

The one thing that is puzzling me though is doing rspec controller
tests. I have seen the mocks and fixtures included in the gem, but the
purpose of those seem to be stubbing out facebook methods. I have no
desire to do any such thing. I can see that facebooker is specced to
pieces and that's really fine with me. I just want to set a flag in my
controller spec to pretend being logged in to facebook.

Is there an easy way to do this?
Reply all
Reply to author
Forward
0 new messages