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 <[EMAIL PROTECTED]> wrote: > 2007/10/9, Lance Carlson <[EMAIL PROTECTED]>: > > 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@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users