On 08/05/2009, at 1:39 PM, Lachie wrote: > Would you be a dear and expound your cucumber re-ramblings for those > not there on the evening? > > Your slides are brief but the ideas I can glean fill me with low > level unease.
I just wanted to put it out there as an experience I had refactoring some stories with Myles Byrne on a project. The suggestion was to not use the extra cucumber rails abstractions out of the box (support/paths.rb) unless you need them—which for me means writing a bunch of code to translate ruby to English when everyone on the team is perfectly capable of reading simple Ruby. The paths.rb file is particularly hairy - a global list of path generating steps that just gets bigger and bigger. The example wasn't the lack of webrat but the insanity of the paths file - and in turn just asking yourself why you're writing all that extra code, especially if it was just cause a tool put it out. Similar to naming template files simple .haml instead of .html.haml to begin with, unless you need to differentiate response types. Let's throw the ideas around over beers next weekend... much easier. -- tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" 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/rails-oceania?hl=en -~----------~----~----~----~------~----~------~--~---
