small medium large xlarge

Generic-user-small
25 Jul 2008, 06:21
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.

You must be logged in to comment