Generic-user-small JP Lester 1 post

Apologies if this is a dupe (did a quick search), but it looks like the ‘require’ line of the unit tests generated in Rails 2.1 are different than what is described in sec 13.2 (i.e., require 'test_helper' vs. require File.dirname(__FILE__) + '/../test_helper' ).

As a result running the test per the book ruby test/unit/product_test.rb
in 13.2 fails. Looks like you need to throw a -Itest switch in on the command line to have it pick up the file.

 
Generic-user-small Dustin Tigner 15 posts

I have version 1.3 – have they released a newer version than that? If not, then the testing section is still outdated. You can tell by the color of the pages. If the top is gray, it hasn’t been updated yet. Thus, read the red sections for up-to-date information.

~Dustin Tigner

2 posts, 2 voices