Can I second this question? Could someone provide a simple example of how they set up a functional test for a controller that uses facebooker?? Do you have to copy a lot of stuff from rails_integration_test.rb ? I guess that since we don''t have a test facebook to test against, we have to stub out a lot of stuff right? --simon> Hi, I''m wondering if folks would care to share what strategies they''re > using, or tips and tricks for writing functional tests for their > apps that > use Facebooker? I''m starting to look into this, but wanted to see > what > others had come up with before going too far. > > -- > Christopher Bailey > Cobalt Edge LLC > http://cobaltedge.com-- http://simonwoodside.com
Another shameless plug: I''m working on this right now. It should be available as part of http://www.pragprog.com/titles/mmfacer within the next few weeks. Also, I''m looking for a couple of additional reviewers. If you want an advanced copy of the entire book and are willing to act as a reviewer, let me know. You''ll have to read through the whole book and actually try all of the coding. Drop me an email if you want to review it. Mike On Apr 7, 2008, at 4:08 PM, S. Woodside wrote:> Can I second this question? Could someone provide a simple example of > how they set up a functional test for a controller that uses > facebooker?? Do you have to copy a lot of stuff from > rails_integration_test.rb ? > > I guess that since we don''t have a test facebook to test against, we > have to stub out a lot of stuff right? > > --simon > >> Hi, I''m wondering if folks would care to share what strategies >> they''re >> using, or tips and tricks for writing functional tests for their >> apps that >> use Facebooker? I''m starting to look into this, but wanted to see >> what >> others had come up with before going too far. >> >> -- >> Christopher Bailey >> Cobalt Edge LLC >> http://cobaltedge.com > > -- > http://simonwoodside.com > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
I can''t wait! Is there at least a way to get facebook to show me the RoR error page (with the stack trace) instead of the normal "An error occurred, we''re working on it" text? Maybe returning a fake HTTP response or something? --simon -- http://simonwoodside.com On Apr 7, 2008, at 6:16 PM, Mike Mangino wrote:> Another shameless plug: > > I''m working on this right now. It should be available as part of > http://www.pragprog.com/titles/mmfacer within the next few weeks. > > Also, I''m looking for a couple of additional reviewers. If you want > an advanced copy of the entire book and are willing to act as a > reviewer, let me know. You''ll have to read through the whole book > and actually try all of the coding. > > Drop me an email if you want to review it. > > Mike > > On Apr 7, 2008, at 4:08 PM, S. Woodside wrote: >> Can I second this question? Could someone provide a simple example of >> how they set up a functional test for a controller that uses >> facebooker?? Do you have to copy a lot of stuff from >> rails_integration_test.rb ? >> >> I guess that since we don''t have a test facebook to test against, we >> have to stub out a lot of stuff right? >> >> --simon >> >>> Hi, I''m wondering if folks would care to share what strategies >>> they''re >>> using, or tips and tricks for writing functional tests for their >>> apps that >>> use Facebooker? I''m starting to look into this, but wanted to see >>> what >>> others had come up with before going too far. >>> >>> -- >>> Christopher Bailey >>> Cobalt Edge LLC >>> http://cobaltedge.com >> >> -- >> http://simonwoodside.com >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > >
Yes, Have ActionController return a 200 on an error. Also you''ll probably want to make your own copy of the error templates and substitute any js with fbjs. Michael On Apr 7, 2008, at 9:32 PM, S. Woodside wrote:> I can''t wait! > > Is there at least a way to get facebook to show me the RoR error page > (with the stack trace) instead of the normal "An error occurred, > we''re working on it" text? Maybe returning a fake HTTP response or > something? > > --simon > > -- > http://simonwoodside.com > > > On Apr 7, 2008, at 6:16 PM, Mike Mangino wrote: >> Another shameless plug: >> >> I''m working on this right now. It should be available as part of >> http://www.pragprog.com/titles/mmfacer within the next few weeks. >> >> Also, I''m looking for a couple of additional reviewers. If you want >> an advanced copy of the entire book and are willing to act as a >> reviewer, let me know. You''ll have to read through the whole book >> and actually try all of the coding. >> >> Drop me an email if you want to review it. >> >> Mike >> >> On Apr 7, 2008, at 4:08 PM, S. Woodside wrote: >>> Can I second this question? Could someone provide a simple example >>> of >>> how they set up a functional test for a controller that uses >>> facebooker?? Do you have to copy a lot of stuff from >>> rails_integration_test.rb ? >>> >>> I guess that since we don''t have a test facebook to test against, we >>> have to stub out a lot of stuff right? >>> >>> --simon >>> >>>> Hi, I''m wondering if folks would care to share what strategies >>>> they''re >>>> using, or tips and tricks for writing functional tests for their >>>> apps that >>>> use Facebooker? I''m starting to look into this, but wanted to see >>>> what >>>> others had come up with before going too far. >>>> >>>> -- >>>> Christopher Bailey >>>> Cobalt Edge LLC >>>> http://cobaltedge.com >>> >>> -- >>> http://simonwoodside.com >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
I don''t find it obvious how to do this, can you give me a hint? Also, I''ve found another way to make testing easier. I now have two "apps" on FB driven by the same source base. One runs off my own laptop with dynamic dns, the other off the server. I automatically change the FB api key and secret key by using ERB in facebooker.yml. See http://rubyforge.org/tracker/index.php? aid=19676&group_id=4187&atid=16132 --simon -- http://simonwoodside.com On Apr 8, 2008, at 12:26 AM, Michael Niessner wrote:> Yes, > > Have ActionController return a 200 on an error. Also you''ll > probably want to make your own copy of the error templates and > substitute any js with fbjs. > > Michael > > On Apr 7, 2008, at 9:32 PM, S. Woodside wrote: > >> I can''t wait! >> >> Is there at least a way to get facebook to show me the RoR error page >> (with the stack trace) instead of the normal "An error occurred, >> we''re working on it" text? Maybe returning a fake HTTP response or >> something? >> >> --simon >> >> -- >> http://simonwoodside.com >> >> >> On Apr 7, 2008, at 6:16 PM, Mike Mangino wrote: >>> Another shameless plug: >>> >>> I''m working on this right now. It should be available as part of >>> http://www.pragprog.com/titles/mmfacer within the next few weeks. >>> >>> Also, I''m looking for a couple of additional reviewers. If you want >>> an advanced copy of the entire book and are willing to act as a >>> reviewer, let me know. You''ll have to read through the whole book >>> and actually try all of the coding. >>> >>> Drop me an email if you want to review it. >>> >>> Mike >>> >>> On Apr 7, 2008, at 4:08 PM, S. Woodside wrote: >>>> Can I second this question? Could someone provide a simple >>>> example of >>>> how they set up a functional test for a controller that uses >>>> facebooker?? Do you have to copy a lot of stuff from >>>> rails_integration_test.rb ? >>>> >>>> I guess that since we don''t have a test facebook to test >>>> against, we >>>> have to stub out a lot of stuff right? >>>> >>>> --simon >>>> >>>>> Hi, I''m wondering if folks would care to share what strategies >>>>> they''re >>>>> using, or tips and tricks for writing functional tests for their >>>>> apps that >>>>> use Facebooker? I''m starting to look into this, but wanted to see >>>>> what >>>>> others had come up with before going too far. >>>>> >>>>> -- >>>>> Christopher Bailey >>>>> Cobalt Edge LLC >>>>> http://cobaltedge.com >>>> >>>> -- >>>> http://simonwoodside.com >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >
Facebooker.yml allows you to specify different keys for different environments. That would probably be even easier. In terms of the error handling, you can do the following: class ActionController::Base protected def response_code_for_rescue(exception) "200" end end On Apr 21, 2008, at 12:55 AM, S. Woodside wrote:> I don''t find it obvious how to do this, can you give me a hint? > > Also, I''ve found another way to make testing easier. I now have two > "apps" on FB driven by the same source base. One runs off my own > laptop with dynamic dns, the other off the server. I automatically > change the FB api key and secret key by using ERB in facebooker.yml. > See > http://rubyforge.org/tracker/index.php?aid=19676&group_id=4187&atid=16132 > > --simon > > -- > http://simonwoodside.com > > > On Apr 8, 2008, at 12:26 AM, Michael Niessner wrote: >> Yes, >> >> Have ActionController return a 200 on an error. Also you''ll >> probably want to make your own copy of the error templates and >> substitute any js with fbjs. >> >> Michael >> >> On Apr 7, 2008, at 9:32 PM, S. Woodside wrote: >> >>> I can''t wait! >>> >>> Is there at least a way to get facebook to show me the RoR error >>> page >>> (with the stack trace) instead of the normal "An error occurred, >>> we''re working on it" text? Maybe returning a fake HTTP response or >>> something? >>> >>> --simon >>> >>> -- >>> http://simonwoodside.com >>> >>> >>> On Apr 7, 2008, at 6:16 PM, Mike Mangino wrote: >>>> Another shameless plug: >>>> >>>> I''m working on this right now. It should be available as part of >>>> http://www.pragprog.com/titles/mmfacer within the next few weeks. >>>> >>>> Also, I''m looking for a couple of additional reviewers. If you want >>>> an advanced copy of the entire book and are willing to act as a >>>> reviewer, let me know. You''ll have to read through the whole book >>>> and actually try all of the coding. >>>> >>>> Drop me an email if you want to review it. >>>> >>>> Mike >>>> >>>> On Apr 7, 2008, at 4:08 PM, S. Woodside wrote: >>>>> Can I second this question? Could someone provide a simple >>>>> example of >>>>> how they set up a functional test for a controller that uses >>>>> facebooker?? Do you have to copy a lot of stuff from >>>>> rails_integration_test.rb ? >>>>> >>>>> I guess that since we don''t have a test facebook to test >>>>> against, we >>>>> have to stub out a lot of stuff right? >>>>> >>>>> --simon >>>>> >>>>>> Hi, I''m wondering if folks would care to share what strategies >>>>>> they''re >>>>>> using, or tips and tricks for writing functional tests for their >>>>>> apps that >>>>>> use Facebooker? I''m starting to look into this, but wanted to >>>>>> see >>>>>> what >>>>>> others had come up with before going too far. >>>>>> >>>>>> -- >>>>>> Christopher Bailey >>>>>> Cobalt Edge LLC >>>>>> http://cobaltedge.com >>>>> >>>>> -- >>>>> http://simonwoodside.com >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>-- Mike Mangino http://www.elevatedrails.com
Hey Simon, I recently posted an article on just this topic; how to configure "Custom Environment for Facebook Development" on my blog: http://locusfoc.us/2008/4/18/custom-environment-for-facebook-development This is pretty rudimentary stuff but it is helpful if you are developing with more than one developer and your application has both html and fbml views. On Apr 21, 2008, at 7:57 AM, Mike Mangino wrote:> Facebooker.yml allows you to specify different keys for different > environments. That would probably be even easier. > > In terms of the error handling, you can do the following: > > class ActionController::Base > protected > > def response_code_for_rescue(exception) > "200" > end > end > On Apr 21, 2008, at 12:55 AM, S. Woodside wrote: > >> I don''t find it obvious how to do this, can you give me a hint? >> >> Also, I''ve found another way to make testing easier. I now have two >> "apps" on FB driven by the same source base. One runs off my own >> laptop with dynamic dns, the other off the server. I automatically >> change the FB api key and secret key by using ERB in facebooker.yml. >> See >> http://rubyforge.org/tracker/index.php? >> aid=19676&group_id=4187&atid=16132 >> >> --simon >> >> -- >> http://simonwoodside.com >> >> >> On Apr 8, 2008, at 12:26 AM, Michael Niessner wrote: >>> Yes, >>> >>> Have ActionController return a 200 on an error. Also you''ll >>> probably want to make your own copy of the error templates and >>> substitute any js with fbjs. >>> >>> Michael >>> >>> On Apr 7, 2008, at 9:32 PM, S. Woodside wrote: >>> >>>> I can''t wait! >>>> >>>> Is there at least a way to get facebook to show me the RoR error >>>> page >>>> (with the stack trace) instead of the normal "An error occurred, >>>> we''re working on it" text? Maybe returning a fake HTTP response or >>>> something? >>>> >>>> --simon >>>> >>>> -- >>>> http://simonwoodside.com >>>> >>>> >>>> On Apr 7, 2008, at 6:16 PM, Mike Mangino wrote: >>>>> Another shameless plug: >>>>> >>>>> I''m working on this right now. It should be available as part of >>>>> http://www.pragprog.com/titles/mmfacer within the next few weeks. >>>>> >>>>> Also, I''m looking for a couple of additional reviewers. If you >>>>> want >>>>> an advanced copy of the entire book and are willing to act as a >>>>> reviewer, let me know. You''ll have to read through the whole book >>>>> and actually try all of the coding. >>>>> >>>>> Drop me an email if you want to review it. >>>>> >>>>> Mike >>>>> >>>>> On Apr 7, 2008, at 4:08 PM, S. Woodside wrote: >>>>>> Can I second this question? Could someone provide a simple >>>>>> example of >>>>>> how they set up a functional test for a controller that uses >>>>>> facebooker?? Do you have to copy a lot of stuff from >>>>>> rails_integration_test.rb ? >>>>>> >>>>>> I guess that since we don''t have a test facebook to test >>>>>> against, we >>>>>> have to stub out a lot of stuff right? >>>>>> >>>>>> --simon >>>>>> >>>>>>> Hi, I''m wondering if folks would care to share what strategies >>>>>>> they''re >>>>>>> using, or tips and tricks for writing functional tests for their >>>>>>> apps that >>>>>>> use Facebooker? I''m starting to look into this, but wanted to >>>>>>> see >>>>>>> what >>>>>>> others had come up with before going too far. >>>>>>> >>>>>>> -- >>>>>>> Christopher Bailey >>>>>>> Cobalt Edge LLC >>>>>>> http://cobaltedge.com >>>>>> >>>>>> -- >>>>>> http://simonwoodside.com >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
On Apr 21, 2008, at 8:57 AM, Mike Mangino wrote:> Facebooker.yml allows you to specify different keys for different > environments. That would probably be even easier.I''m running & testing in both environment on both computers.> In terms of the error handling, you can do the following: > > class ActionController::Base > protected > > def response_code_for_rescue(exception) > "200" > end > endThanks. --simon> On Apr 21, 2008, at 12:55 AM, S. Woodside wrote: > >> I don''t find it obvious how to do this, can you give me a hint? >> >> Also, I''ve found another way to make testing easier. I now have >> two "apps" on FB driven by the same source base. One runs off my >> own laptop with dynamic dns, the other off the server. I >> automatically change the FB api key and secret key by using ERB in >> facebooker.yml. See >> http://rubyforge.org/tracker/index.php? >> aid=19676&group_id=4187&atid=16132 >> >> --simon >> >> -- >> http://simonwoodside.com >> >> >> On Apr 8, 2008, at 12:26 AM, Michael Niessner wrote: >>> Yes, >>> >>> Have ActionController return a 200 on an error. Also you''ll >>> probably want to make your own copy of the error templates and >>> substitute any js with fbjs. >>> >>> Michael >>> >>> On Apr 7, 2008, at 9:32 PM, S. Woodside wrote: >>> >>>> I can''t wait! >>>> >>>> Is there at least a way to get facebook to show me the RoR error >>>> page >>>> (with the stack trace) instead of the normal "An error occurred, >>>> we''re working on it" text? Maybe returning a fake HTTP response or >>>> something? >>>> >>>> --simon >>>> >>>> -- >>>> http://simonwoodside.com >>>> >>>> >>>> On Apr 7, 2008, at 6:16 PM, Mike Mangino wrote: >>>>> Another shameless plug: >>>>> >>>>> I''m working on this right now. It should be available as part of >>>>> http://www.pragprog.com/titles/mmfacer within the next few weeks. >>>>> >>>>> Also, I''m looking for a couple of additional reviewers. If you >>>>> want >>>>> an advanced copy of the entire book and are willing to act as a >>>>> reviewer, let me know. You''ll have to read through the whole book >>>>> and actually try all of the coding. >>>>> >>>>> Drop me an email if you want to review it. >>>>> >>>>> Mike >>>>> >>>>> On Apr 7, 2008, at 4:08 PM, S. Woodside wrote: >>>>>> Can I second this question? Could someone provide a simple >>>>>> example of >>>>>> how they set up a functional test for a controller that uses >>>>>> facebooker?? Do you have to copy a lot of stuff from >>>>>> rails_integration_test.rb ? >>>>>> >>>>>> I guess that since we don''t have a test facebook to test >>>>>> against, we >>>>>> have to stub out a lot of stuff right? >>>>>> >>>>>> --simon >>>>>> >>>>>>> Hi, I''m wondering if folks would care to share what strategies >>>>>>> they''re >>>>>>> using, or tips and tricks for writing functional tests for their >>>>>>> apps that >>>>>>> use Facebooker? I''m starting to look into this, but wanted >>>>>>> to see >>>>>>> what >>>>>>> others had come up with before going too far. >>>>>>> >>>>>>> -- >>>>>>> Christopher Bailey >>>>>>> Cobalt Edge LLC >>>>>>> http://cobaltedge.com >>>>>> >>>>>> -- >>>>>> http://simonwoodside.com >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> > > -- > Mike Mangino > http://www.elevatedrails.com > > >
Seemingly Similar Threads
- Developing Facebook Platform Applications with Rails
- a way to restrict who can install your app, for private testing
- facebook_url_rewriter not used in Publisher?
- [PATCH] helper to create fb css stylized table
- Setting :canvas => false for URL generation doesn''t always work?