# Rails function tests not calling setup

**URL:** <https://www.ruby-forum.com/t/rails-function-tests-not-calling-setup/131925>\
**Category:** Rails\
**Created:** [March 14, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/rails-function-tests-not-calling-setup/131925 "2008-03-14T13:48:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vagabond](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Post date:** [March 14, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/rails-function-tests-not-calling-setup/131925/1 "2008-03-14T13:48:56Z")

</div>

Hi all

I have tried Googling this and have not come up with anything  
specifically  
helpful.

The setup method in my functional tests is not being called at all.

I’m using Rails 2.0.2.  
Has anyone experienced this? Is it a known issue and is there a work  
around?

Thanks

Andrew T.  
removed\_email\_address@domain.invalid  
082 415 8283  
skype: andrewtimberlake

“I have never let my schooling interfere with my education.”  
–Mark Twain

---

<div class="post-metadata">

**Author:** ![vagabond](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@vagabond](https://www.ruby-forum.com/u/vagabond)\
**Post date:** [March 14, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/rails-function-tests-not-calling-setup/131925/2 "2008-03-14T14:25:18Z")

</div>

On 14 Mar 2008, at 12:47, Andrew T. wrote:

> Has anyone experienced this? Is it a known issue and is there a work  
> around?  
> This isn’t quite what you’re talking about, but it might guide you in  
> the right direction. In 2.0, your test cases are subclasses of  
> ActionController::TestCase (or something like that) which provides a  
> setup task that gets rid of the boilerplate of creating a controller  
> instance, test request etc…, but if you supply your own setup method  
> then you need to call super or those things aren’t done for you.

Fred
