[rspec-users] Testing layouts with RSpec on Rails
lancecarlson at gmail.com
Tue Oct 9 15:16:25 EDT 2007
Also maybe instead of and_return.. you would do and_yield('')
On 10/9/07, Lance Carlson <lancecarlson at gmail.com> wrote:
> It is a ruby keyword, but isn't also just a method being called in the view?
> On 10/9/07, Jean-François Trân <jftran at rubyfrance.org> wrote:
> > 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 )
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users