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.
spec_helper in path.png
spec_helper inspection.png



Attachment(s):
idea.log.zip
3 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink

Hi,

rajiv.abraham@thescore.com wrote:
 
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?


Nope, is it possible to provide a small test project which demonstrates the problem?

Regards, Oleg.

0

Please sign in to leave a comment.