0

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 
2
  • Try to improve your question (title, code formatting, add a question)... Commented Nov 19, 2014 at 13:12
  • Please provide the path of the file in which this code is located? Also, try just require 'test_helper' - if your test file is properly located, this should find your test_helper file. Commented Nov 19, 2014 at 13:16

1 Answer 1

1

You have an unwanted dot in unit., replace your require with:

require File.expand_path("../../test_helper", __FILE__) # Or maybe require File.expand_path("../test_helper", __FILE__) 
Sign up to request clarification or add additional context in comments.

1 Comment

Replaced require with "require File.expand_path("../../test_helper", FILE)"

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.