[rspec-users] Integrate or isolate views?

Pat Maddox pat.maddox at gmail.com
Wed Jul 1 03:49:19 EDT 2009

If your controllers are fat, test in isolation.  For skinny
controllers I will sometimes forgo controller specs altogether and
implicitly verify the integration through cucumber features.
Sometimes there's something funky that makes the cucumber failure
output difficult to interpret, and controller specs can make it easy
to pinpoint.


On Sun, Jun 28, 2009 at 7:32 AM, Jesse Crockett<lists at ruby-forum.com> wrote:
> Hello,
> I've been trying for two years to pick up BDD.  I'm making progress,
> have just read through the chapters in The RSpec Book on spec'ing views
> and controllers.
> What is the difference between using integrate_views and doing what
> seems to be a lot of extra work to test the views in isolation?
> When I use integrate_views, can I write view spec in what would
> otherwise be isolated controller spec?
> I read that I'm "encouraged" to do these in isolation, but IMHO the
> chapter on spec'ing views is not very convincing in its own right, it
> tells me that it's good, but doesn't show me as much, compared to the
> examples and descriptions of circumstance that make several other
> chapters very convincing.
> Please help.  thanks
> Jesse
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list