On Wed, Apr 15, 2009 at 4:52 PM, Brandon Olivares <programmer2...@gmail.com>wrote:
> Hi, > > I've been extracting a lot of code out of my specs into their own matchers, > helpers, and macros. > > I notice that the plugins that have their own specs, such as rspec-rails, > and even RSpec itself, have specs for the matchers and helpers. Is this > generally a good thing to do, or is it unnecessary? > Overkill, unless they are really complex, which they shouldn't be. Usage of the matchers in specs should be good enough. If it isn't your matchers are too complex. Strive for cyclomatic complexity of 1 in *all* test code. (no branches). Aslak > > Brandon > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users