Ruby: Using require produces "in `require': cannot load such file " -
the error:
in `require': cannot load such file -- c:/railsinstaller/tickets/test/unit./test_helper (loaderror)
the code is:
require file.dirname(__file__) + '/../test_helper' class tickettest < activesupport::testcase # ... # ... # ... end
you have unwanted dot in unit.
, replace require with:
require file.expand_path("../../test_helper", __file__) # or maybe require file.expand_path("../test_helper", __file__)
Comments
Post a Comment