Forum: Ruby on Rails Agile Web Development Question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D3fc5887a2f39f2e0c8989d39ce5e6f9?d=identicon&s=25 Bharat Ruparel (bruparel)
on 2007-04-05 23:34
This is a question about Integration Tests from Agile Web Development
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
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
This topic is locked and can not be replied to.