[rspec-users] Testing layouts with RSpec on Rails

Jean-François Trân jftran at rubyfrance.org
Tue Oct 9 14:55:06 EDT 2007

2007/10/9, Lance Carlson <lancecarlson at gmail.com>:
> or if you want to test that it is being called.. you could do
> template.should_receive(:yield).and_return('')

I'm missing a point... how can you expect to receive a :yield message
since yield is a Ruby keyword ?

   -- Jean-François.

Ruby ( http://www.rubyfrance.org ) on Rails ( http://www.railsfrance.org )

More information about the rspec-users mailing list