small medium large xlarge

Generic-user-small
05 Jan 2016, 09:37
Shreya Srinivas (1 post)

In Chapter 7 of the Agile Web Development with Rails when I run the Iteration B2: Unit Testing of Models, I entered the given code in /test/models/product_test.rb, upon running rake: models this is the error I get.

5 runs, 19 assertions, 0 failures, 2 errors, 0 skips

1) Error: ProductTest#test_product_is_not_valid_without_a_unique_title: StandardError: No fixture named ‘ruby’ found for fixture set ‘products’ test/models/product_test.rb:56:in `block in '

2) Error: ProductTest#test_product_is_not_valid_without_a_unique_title_-_i18n: StandardError: No fixture named ‘ruby’ found for fixture set ‘products’ test/models/product_test.rb:66:in `block in '

How do I fix this?

You must be logged in to comment