# Alias\_method\_chain :process

**URL:** <https://www.ruby-forum.com/t/alias-method-chain-process/168861>\
**Category:** Rails\
**Created:** [May 26, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/alias-method-chain-process/168861 "2009-05-26T20:41:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@jay](https://www.ruby-forum.com/u/jay)\
**Post date:** [May 26, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/alias-method-chain-process/168861/1 "2009-05-26T20:41:38Z")

</div>

Hi,

I’m trying to upgrade to rails 2.3.2 and need a little help figuring  
something out.

Our app uses the plugin asserts\_valid\_asset to test the welformedness  
of HTML that is generated.

This plugin extends test::unit::testcase by wanting to method chain  
the process method.

class Test::Unit::TestCase  
//code snipped out

alias\_method\_chain :process, :auto\_validate

end

In Rails 2.2.2 this works fine.

However in 2.3.2 this fails saying the method process doesn’t exist.

I can’t find out what changed in rails 2.3.2 that caused this so that  
I can go and fix the plugin.

Can anyone point me to what changed… or what I could do to fix the  
plugin? I’m assuming the TestProcess include got moved…  
I’m also wondering if this is a loading problem… maybe TestProcess  
isn’t included yet by the time the plugin’s init.rb file is being  
called.

Thanks for any thoughts / suggestions that could send me down a path  
too look into.  
Jay

---

<div class="post-metadata">

**Author:** ![jay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ed8c4c/32.png) [@jay](https://www.ruby-forum.com/u/jay)\
**Post date:** [May 26, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/alias-method-chain-process/168861/2 "2009-05-26T23:20:43Z")

</div>

On May 26, 7:40 pm, Jay [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I’m trying to upgrade to rails 2.3.2 and need a little help figuring  
> something out.
> 
> Our app uses the plugin asserts\_valid\_asset to test the welformedness  
> of HTML that is generated.
> 
> This plugin extends test::unit::testcase by wanting to method chain  
> the process method.

I think that stuff is now only in ActionController::TestCase

Fred
