2008/11/4 David Leal <[EMAIL PROTECTED]>: >> * finally, add a feature generator > > I've been toying with the idea of adding a bunch of features whenever > people do merb-gen resource. This would generate > > * new_[resource].feature > * delete_[resource].feature > * edit_[resource].feature > * show_[resource].feature > * index_[resource].feature > > and would serve as a starting point. These would either use webrat, or > the Merb helpers, according to the session type. Would this be useful? > > Also, what would a useful feature generator (merb-gen feature) > contain? I'm having a bit of trouble coming up with a reason to > justify the existence of that. :)
I just wanted it to generate files for the story, steps and this is it. You can add --feature or something to generators in merb-gen, so you can hook into say resource generator. Let me know if you need help with how to do it, but basically you can see merb_datamapper generators that hook into existing model generator, resource generator, etc. >> * add some examples: I am sure you have some toy app that uses it. >> Login example is not enough for most of people, since I already found >> a few cases where I am not sure what approach is good. Features mostly >> are not like login, even signup is very different in a sense that you >> test different things. > > Can you elaborate? At first sight this has to do more with cucumber > itself than with merb_cucumber. The cucumber wiki has a few helpful > pages (we can add a pointer to it in the after_generation hook). It sure has more to deal with practices people find working over and over rather than with the plugin or even cucumber itself. Cucumber wiki has only antipatterns listed (or used to have 2 days ago), and no other examples. > Again, can you elaborate? I'm hesitant of adding stuff to > merb_cucumber when those things could go to the parent projects (merb, > cucumber, webrat) and benefit everyone, not just merb_cucumber users. > Do you mean, how to use cucumber the Merb way? It's a bit of whining about examples: the best way to improve the situation is to point to some page on the web people can update and check out. It's hard to beat community driven docs. -- MK --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
