I want RubyMine to update require paths after I move a file.
Senario1
In my file my_cool_spec.rb I have a require that looks like this. require File.dirname(__FILE__) + "/../test_helper"
Lets say I want to move my_cool_spec.rb into a sub directory so I can logically group my specs.
I create the new directory using RubyMine and now I want to drag my_cool_spec.rb
What happens now:
I manually update the path require File.dirname(__FILE__) + "/../../test_helper"
Can RubyMine update the path for me?
Senario 2
I want to rename test_helper to spec_helper
If I use refactor-> rename . I want RubyMine to go update all the references.
Is there a way I can do this with this require method?
I am using Rubymine 3.0 on Mac OSX 10.5
Please sign in to leave a comment.
Scott,
I've tried both scenarios, indeed it doesn't work. Please submit two requests at http://youtrack.jetbrains.net/issues/ruby :
1. feature request for updating paths in requires for "move" refactorings
2. bug request for updating script name in require call parameter on "rename" refactoring
Thanks for sending me in the right direction.
I entered these requests.
Bug request for updating script name in require call parameter on "rename" refactoring
and
feature request for updating paths in requires for "move" refactorings
Thanks for posting your created issues here, it is definitely helpful for others.
Regards,
Oleg