I’m pretty sure it has something to do with the test data (fixtures). Make sure that you fill out the data in the product fixture file.
You should see three fixtures in your products.yml (test/fixtures/products.yml) file:
title: Programming Ruby 1.9
Ruby is the fastest growing and most exciting dynamic language out there.
If you need to get working programs delivered fast, you should add Ruby to your toolbox.
Make sure you use the space bar to line up the attributes and not the tab key. Very important!
Also ensure that your functional test matches up with your fixture data in your StoreControllerTest file:
test "should get index" do
assert_select '#columns #side a', minimum: 4
assert_select '#main .entry', 3
assert_select 'h3', 'Programming Ruby 1.9'
assert_select '.price', /\$[,\d]+\.\d\d/
Remember this code is checking to make sure that when the store’s index is called, there is an entry for Programming Ruby 1.9 in the store’s product listing.