[rspec-users] Confusion At Failing Specs

RSL sconds at gmail.com
Fri Nov 7 16:48:16 EST 2008

Can someone please explain to me why this spec fails

it "should work" do


  template.should_receive(:render).with(:partial => "foo")

  render @template_with_render_partial_foo


but this spec passes

it "should work" do



  @foo.bar :baz


It seems like they should work similarly and indeed this has worked for me
until I switched to gem rspec-rails from vendor/plugin [recent]. Not sure
what I'm doing wrong here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081107/3742989e/attachment.html>

More information about the rspec-users mailing list