[rspec-users] Problem with response.should render_template

Gaston Ramos gramos at rectorado.unl.edu.ar
Thu Jun 7 14:20:41 EDT 2007


Hello, I have problems with this spec controllers:

http://pastie.caboo.se/68634

when I run:
 rake spec:controllers

I get this error:

...............F......

1)
'DocTypeController  should update and redirect to show' FAILED
expected redirect to {:action=>"show", :id=>1}, got redirect to
"http://test.host/doc_type/show/%23%3CSpec%3A%3AMocks%3A%3AMock%3A0xb74a0d14%3E"
./spec/controllers/doc_type_controller_spec.rb:63:

Finished in 0.386261 seconds

22 examples, 1 failure

I would appreciate any help.

-- 
Gastón Ramos

"I always thought Smalltalk would beat Java, I just didn't know it would be
called 'Ruby' when it did."
 -- Kent Beck


More information about the rspec-users mailing list