False negatives in Rubymine Inspection? No such file to load
Hi,
The inspector reports that it cannot find file 'spec_helper' though it exists in the file path spec/spec_helper.rb. I have attached the snapshots and log files. You will see a lot of Rubocop plugin errors but I have added that to the gem file but this inspection warning still exists.

Attachment(s):
idea.log.zip
Please sign in to leave a comment.
Hi,
most likely "spec" directory is not in load path. If so then technically the worning is correct because you will not be able to run
single spec from its derectory w/o additional -I flag.
With ruby >= 1.9 you can just use require_relative and everything will work correctly.
Am I missing something?
Regards, Oleg.
Hi Oleg,
I can run the spec tests in Rubymine and also in the terminal with 'bundle exec rspec /path/to/my_spec.rb. I don't use any additional flag. Would that correlate to your expectations?
Regards,
Rajiv
Hi,
Nope, is it possible to provide a small test project which demonstrates the problem?
Regards, Oleg.