# Cross controller functional tests?

**URL:** <https://www.ruby-forum.com/t/cross-controller-functional-tests/97883>\
**Category:** Rails\
**Created:** [July 11, 2006, 1:29am UTC](https://www.ruby-forum.com/t/cross-controller-functional-tests/97883 "2006-07-11T01:29:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [July 11, 2006, 1:29am UTC](https://www.ruby-forum.com/t/cross-controller-functional-tests/97883/1 "2006-07-11T01:29:51Z")

</div>

Hi,

I have an online store and I would like to simulate a complete  
shopping trip which involves several controllers? How can I write a  
test that calls actions from different controllers in a particular  
sequence? Something like the following which involves department,  
product, cart\_item, and cart controllers.

get department 5  
check it has a link to product 4  
get product 4  
post cartitem/create  
get cart  
see that product 4 in in the cart

Thanks,  
Peter

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [July 11, 2006, 1:39am UTC](https://www.ruby-forum.com/t/cross-controller-functional-tests/97883/2 "2006-07-11T01:39:25Z")

</div>

I want integration tests. Didn’t even know there were there.

Thanks,  
Peter

---

<div class="post-metadata">

**Author:** ![dracos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@dracos](https://www.ruby-forum.com/u/dracos)\
**Post date:** [July 11, 2006, 4:33am UTC](https://www.ruby-forum.com/t/cross-controller-functional-tests/97883/3 "2006-07-11T04:33:35Z")

</div>

This would be … Integration tests?

[http://jamis.jamisbuck.org/articles/2006/03/09/integration-testing-in-rails-](http://jamis.jamisbuck.org/articles/2006/03/09/integration-testing-in-rails-)  
1-1

The site is a bit slow right now, but the article is great.
