Re: [rspec-users] template.expect_render 'failure'

2008-02-08 Thread Kevin Barnes
David Chelimsky wrote: > > Code please. I stand corrected. It is only not working for me when mocha is enabled. I just stepped through four cases and detailed the view spec, view (that is sometimes empty) and results. This is running on OSX 10.4.11 with the following setup: moonbook:~ barnekr$

[rspec-users] template.expect_render 'failure'

2008-02-08 Thread Kevin Barnes
I keep having problems w/ expect_render, mainly that it doesn't work as advertised. I can put a template.expect_render(:partial => 'this should fail') in a view spec and I get no failure. I have read the docs, I have followed the threads (two, which never resolve the initial issue and dissolve into

Re: [rspec-users] expect_render(...).and_return('x')

2008-01-25 Thread Kevin Barnes
I've experienced very strange behavior with expect_render and stub_render as well as putting expectations on self in helper tests... It seems a lot of this weirdness started when I upgraded the rails plugin from 1.1.0 to 1.1.2. I use mocha instead of the rspec mocks - don't know if that is a ca