Ruby on Rails Thursday, December 1, 2011

Cool, thanks a lot for the examples, I'm amazed by how clean and
readable these specs are.

On Nov 30, 4:22 pm, Frederick Cheung <frederick.che...@gmail.com>
wrote:
> On Nov 30, 10:56 am, Michael Erasmus <michaeleras...@gmail.com> wrote:
>
> > I would like to experiment with writing a my own generator that I
> > might want to eventually bundle into it's own gem. What I would like
> > to know if it's feasible or considered best practice to write specs/
> > tests for your generator, and if so, any tips or examples you can
> > point me to?
>
> You certainly can test them, for example here are the specs for the
> rspec generators:https://github.com/rspec/rspec-rails/tree/master/spec/generators
>
> Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment