Is there a way to get some help from RubyMine code completion when using the Capybara definition in Cucumber? I'm new to Capybara, so not necessarily checking the link site all the time would be very helpful.
The best I can get at the moment is to explicitly call Session.new , something like:
session = Capybara::Session.new(:rack_test, my_app)
This method is Ctrl+Space after session. shows me the methods from Capybara :: Session (only), so at least I know it is somehow accessible. But this is not how I really use Capybara in my step definitions. I thought that helping the type-input engine manually by annotating the page might do the trick, but I suppose all this DSL magic is too much to handle.
So, in principle, is it possible
page.<Ctrl+Space>
pops up with all open DSL methods? RubyMine API maybe? Or, as an alternative, in some other way approximate referenced documents (I don't think RubyMine still supports external documents in the IDE)?
rubymine cucumber capybara
Karol J. Piczak
source share