[rspec-users] testing instance variables that are set inside views

barsalou barjunk at attglobal.net
Sat Jun 30 16:35:10 EDT 2007


Quoting aslak hellesoy <aslak.hellesoy at gmail.com>:

> @header is an implementation detail of your view that you shouldn't
> care about in your view spec at all. I recommend you use the have_tag
> matcher instead to verify what content gets rendered as expected.
>
> Aslak
>

Thanks Aslak, I wondered this myself.  I looked around here : 
http://rspec.rubyforge.org/rdoc/index.html for have_tag but didn't find 
it.

Where would be a good place to find some of these matchers?

Mike B.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the rspec-users mailing list