# Best practice for common functional tests?

**URL:** <https://www.ruby-forum.com/t/best-practice-for-common-functional-tests/150111>\
**Category:** Rails\
**Created:** [October 3, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/best-practice-for-common-functional-tests/150111 "2008-10-03T21:15:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 3, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/best-practice-for-common-functional-tests/150111/1 "2008-10-03T21:15:46Z")

</div>

All,

I’m working on an ActiveScaffold based application, and in the interest  
of getting more functional test coverage, I’d like to verify things  
about AS-generated screens in the context of multiple controllers.

In order to share these tests, I’ve created methods in test\_helper.rb,  
and simply invoke them from a method in each of the controllers.

Does anyone have a good recommendation for a way to manage functional  
tests that you want to run across multiple controllers without having to  
place a test method that simply calls a common test in each functional  
test file?

Thanks,  
Wes
