do you require the file which defines this vars in other files?
I'm sure your code does work I just try to understand how the variable is supposed to become available in the particular script
to understand what RubyMine is missing.
P.S. we can not treat globals from one script as available in another for all cases because not everyone use them this way.
you are right untill you will call projectA_unit1.rb directrly. And RubyMine can not be sure that this is not the case
We have some assumptions for Rails apps, but not for a regular Ruby apps.
We will think what we can do here.