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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -