Oh lordy, I forgot to gripe about the issues I had to overcome in order to continue using webrat for integration testing! The executive summary is:
- webrat assumes the site is named 'www.example.com' so I had to set APP_URL to that in my test environment, else some redirects were determined by webrat to be going offsite and weren't followed, which is key behavior - in order to use webrat to test the creation of friendships, I had to soup up the ajax "Request friendship" link that CE provides by default to include an href, and so had to create a new action that behaves via a GET request just like the existing friendship:create action does via POST. But not before spending 3 hours trying to learn how to append my own restful route to the rest of the friendships universe, which I finally gave up on by just calling url_for. On Jan 2, 10:38 pm, GregL <[email protected]> wrote: > I just relaunched my 4 year old sitehttp://www.shelfcentered.com, > which now includes CE integration and all the great features that > brings. I will continue to work on tightening the integration between > old and new areas of the site, and I'll also be working towards > Facebook integration, so I'm sure I'll continue to occasionally darken > this newsgroup's doorway. > > Many thanks to Bruno and the others here to helped me along the way. I > overcame the following during the 3 months (of VERY part-time work) > that this project took me: > > - stupid mistakes installing CE > - learning HAML > - migrating existing user accounts into CE's tables, including logic > to add salt when users next log in > - integrating my own existing activity model into CE's > - changing CE's behavior to require login for most areas, without > editing CE code, and while excluding RSS from this logic > - dealing with the implications of breaking CE's tests (mostly due to > the previous point) > - problems with desert's asset-directory-copying behavior in my > subversion-controlled site > - overcoming Dreamhost's RAM limits, which kicked in when CE entered > the picture (hint: don't run TWO rails sites off the same username) > - adapting CE's awesome clippings workflow to another purpose, greatly > upgrading a functionality my users use heavily > > I would be happy to present the more interesting experiences for the > CE Users Conference, should that come to pass. > > I am absolutely thrilled that I have gained all this functionality > while being able to elegantly patch over any behavior I care to > change. I now have a forum, blogs, photo uploading, profiles, an email > notification infrastructure, and a much nicer-looking (and better > thought-out) site than I could have ever mustered. I learned a ton > more about rails along the way too. > > Greg -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.
