[rspec-users] Correct way to spec partials

Oleksandr Rudyk alex.rudyk at gmail.com
Thu Oct 23 21:07:35 EDT 2008

Hi everybody,
1) Does anybody have full working example of how to test partial templates?

2) What the correct place to test partials: controller or view spec? If
controller correct place,
should I use integrate_views?

3) Is it true that expect_render is deprecated and I have to
use should_receive(:render)

4) How to test that partial's locals hash is correct?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081023/b29f4e84/attachment.html>

More information about the rspec-users mailing list