# Controller mixins not present in tests?

**URL:** <https://www.ruby-forum.com/t/controller-mixins-not-present-in-tests/151599>\
**Category:** Engines\
**Created:** [October 23, 2008, 11:48am UTC](https://www.ruby-forum.com/t/controller-mixins-not-present-in-tests/151599 "2008-10-23T11:48:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Tapiador\_de](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@Antonio\_Tapiador\_de](https://www.ruby-forum.com/u/Antonio_Tapiador_de)\
**Post date:** [October 23, 2008, 11:48am UTC](https://www.ruby-forum.com/t/controller-mixins-not-present-in-tests/151599/1 "2008-10-23T11:48:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Antonio\_Tapiador\_de](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@Antonio\_Tapiador\_de](https://www.ruby-forum.com/u/Antonio_Tapiador_de)\
**Post date:** [October 29, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/controller-mixins-not-present-in-tests/151599/2 "2008-10-29T16:49:47Z")

</div>

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.
