[LRUG] Acceptance-testing facebook canvas applications

nicolas alpi nicolas.alpi at gmail.com
Fri Sep 9 10:48:35 PDT 2011


Sorry was writing from the tablet, and hit send by mistake.

What we did for Facebook mydrinkaware app was to create a separate
subdomain, that will differentiate the normal app, from what you're seeing
on Facebook.

Then the tests are just normal acceptance tests.

And if you want to test the login with facebook, I was just writing
something about this yesterday using Devise and Capybara
http://wealsodocookies.com/posts/how-to-test-facebook-login-using-devise-omniauth-rspec-and-capybara

Nic
--
Nicolas Alpi, web developer, cookies eater
http://www.wealsodocookies.com


On Fri, Sep 9, 2011 at 6:42 PM, nicolas alpi <nicolas.alpi at gmail.com> wrote:

> Yea this is what we did for the drinkaware fb tab app and it works fine.
> On Sep 9, 2011 6:31 PM, "Mr Jaba" <the.jaba at gmail.com> wrote:
> > Hi Tim,
> >
> > In my, (admittedly limited) FB experience, a Facebook app is simply in a
> > Rails Application sitting in an Iframe, so you can write acceptance tests
> in
> > the usual way without worrying about having to log into facebook etc.
> Once
> > you get into interacting with their servers (graph API) etc though you
> might
> > have more trouble. At that point you might want to mock out the responses
> > from their servers.
> >
> > Hope that helps, and isn't just stating the obvious!
> >
> > Tom
> >
> > On 9 September 2011 17:52, Tim Cowlishaw <tim at timcowlishaw.co.uk> wrote:
> >
> >> Hi all,
> >>
> >> I'm starting work on a facebook application that will sit in a canvas
> >> tab on a facebook page. I've been looking around for info on how to
> >> write acceptance tests for this sort of project but have so far drawn
> >> a blank. Therefore, have any of you any experience of writing and
> >> testing facebook apps with ruby (bonus points if you're using rspec
> >> and/or capybara)?
> >>
> >> Thanks,
> >>
> >> Tim
> >> _______________________________________________
> >> Chat mailing list
> >> Chat at lists.lrug.org
> >> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> >>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20110909/97cbd7c0/attachment.html>


More information about the Chat mailing list