[rspec-users] Problem with response.should render_template

David Chelimsky dchelimsky at gmail.com
Thu Jun 7 14:59:01 EDT 2007


On 6/7/07, Gaston Ramos <gramos at rectorado.unl.edu.ar> wrote:
> 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.

Can you please add the controller code to the pastie?

>
> --
> 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
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list