# Agile Web Development Question

**URL:** <https://www.ruby-forum.com/t/agile-web-development-question/91248>\
**Category:** Rails\
**Created:** [April 5, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/agile-web-development-question/91248 "2007-04-05T23:34:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruparel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Post date:** [April 5, 2007, 11:34pm UTC](https://www.ruby-forum.com/t/agile-web-development-question/91248/1 "2007-04-05T23:34:32Z")

</div>

This is a question about Integration Tests from Agile Web D.  
book - 2nd Edition.  
The integration test is contained in the file “user\_stories\_test.rb” and  
given on page 208 of the book. I can run the test fine and it works.  
One thing that puzzles me is that both the orders and line\_items tables  
are empty after running the test unlike unit and functional tests which  
leave the fixtures data populated in the table. I make a point of  
checking them after I run the test to see if the tests ran and populated  
the fixture data into the table. Integration test does not seem to do  
that.  
I even commented out the following two lines at the beginning of the  
test called “test\_buying\_a\_product” :

# LineItem.delete\_all

# Order.delete\_all

but that still left the tables empty. Is this the default Rails  
behavior?  
Bharat
