[rspec-users] Separating black sheep examples from the rest
Joseph Wilk
joesniff at gmail.com
Tue Sep 23 11:25:02 EDT 2008
Matt Wynne wrote:
> So we've got a pretty decent number of specs now, and despite my best
> efforts, AR is just forcing us down the path of having to use database
> interaction for some of the model specs.
Just out of curiosity, I would be interested to know how AR is forcing
you to use database interaction in your model specs. Can you give an
example?
--
Joseph Wilk
http://www.joesniff.co.uk
>
> It's starting to get tiring to run all the specs now, which is making
> me sad, and making me worry about how things are going to be in a few
> months from now.
>
> I'd like to somehow be able to systematically mark the slow example
> groups as being 'impure' and thus be able to choose to mostly ignore
> them during my regular TDD cycle, just running them every so often as
> a regression.
>
> I'm thinking something like this:
>
> describe "when there are ten users in the database", :slow => true do
>
> What do you think? How are other people solving this problem? Any tips
> / thoughts on how I could implement this?
>
> cheers,
> Matt
> ----
> http://blog.mattwynne.net
> http://songkick.com
>
> In case you wondered: The opinions expressed in this email are my own
> and do not necessarily reflect the views of any former, current or
> future employers of mine.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list