Forum: Rails Engines Controller mixins not present in tests?

Posted by Antonio Tapiador del Dujo (Guest)
on 2008-10-23 11:48
(Received via mailing list)
I'm using Controller mixins in an application, overwriding just one 
method
from the plugin.

Everything works fine in develpment env, but when passing tests, it 
seems like
the Controller from the plugin isn't loaded:

test_should_remember_me(SessionsControllerTest):
ActionController::UnknownAction: No action responded to create

Am I missing anything?
Posted by Antonio Tapiador del Dujo (Guest)
on 2008-10-29 16:49
(Received via mailing list)
On Thursday 23 October 2008 11:47:59 Antonio Tapiador del Dujo wrote:
> I'm using Controller mixins in an application, overwriding just one method
> from the plugin.
>
> Everything works fine in develpment env, but when passing tests, it seems
> like the Controller from the plugin isn't loaded:
>
> test_should_remember_me(SessionsControllerTest):
> ActionController::UnknownAction: No action responded to create
>
> Am I missing anything?

I was a test generated with an old scaffold.

Changing it to SessionsControllerTest < ActionController::TestCase 
solved the
issue.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.