How do you patch gems in RubyMine?
There is an issue I came across when I needed to patch the webrat gem:
http://stackoverflow.com/questions/2974330/webrat-and-rails-using-assert-contain-after-click-button-gives-me-you-are-being
So, under Project -> External libraries, I looked for the one webrat Gem, navigated to
/lib/webrat/core/session.rb, made and saved my changes. Great. However when I ran my cucumber test in RubyMine, I was still getting my same problems, but in CLI it was just fine. I tried rebooting RubyMine, still the same problems.
So how would I get my patch changes to take effect?
Eric
Attachment(s):
Gem - Patch update.png
Please sign in to leave a comment.
I have tried:
- File -> Synchronize
- File -> invalidate Caches
neither of these worked.
I have tried this in both:
- RubyMine 3.0.1
- RubyMine 3.1 EAP 102.217
Did not work for either Application.
Hmm, I always do the same.
RubyMine just launches external Ruby process. No sync changes/caches/etc is required.
Try to debug the test or insert some debug output. May be runtime loadpath differs in RubyMine and CLI by some reason, thus your patch wont be executed on run-time.