All,
I've been having issues with my namespaced controllers and specs. I
receive the following errors only on my create and update actions
(with invalid parameters) and only on my namespaced controllers. My
non-namespaced controllers have similar specs and work well. The
application works as expected, but the specs are reporting:
Failures:
1) Management::CountriesController POST create with invalid params
re-renders the 'new' template
Failure/Error: response.should render_template(:new)
expecting <"new"> but rendering with <"">
# ./spec/controllers/management/countries_controller_spec.rb:
169:in `block (4 levels) in <top (required)>'
2) Management::CountriesController PUT update with invalid params re-
renders the 'edit' template
Failure/Error: response.should render_template(:edit)
expecting <"edit"> but rendering with <"">
# ./spec/controllers/management/countries_controller_spec.rb:
240:in `block (4 levels) in <top (required)>'
Here's a gist to help my explanation:
https://gist.github.com/1468233
I'm using the Devise/CanCan combo.
Any help is greatly appreciated. I've been ignoring these for a while
and it's time to fix them.
Cheers,
Adam
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users