We are starting to use Cucumber heavily in several projects, and I have extracted some steps that are common to several projects to a shared git repository. When I am creating features and scenarios, RubyMine very helpfully shows me that the steps defined in the project I am working on are correct, and offers auto complete. But for the steps that are in my shared repository, I get no help. Here is a screenshot:
I actually have defined the step that is shown with the yellow background, but I don't know how to tell RubyMine "Also look over here for step definitions"
I've looked at the RubyMine help, but I have been unsuccessful in finding anything.
I'm running RubyMine 6.3.2, build 135-809 on Ubuntu 12.04
I can't see the screen shot. Could you attach it once again?
I attached a file - for some reason the png isn't showing up. Maybe a JPG?
Strange. When I edit the post, the image shows up, but when viewing the post the image isn't there. Maybe a dropbox public link will work:
I also looked at a couple of the other posts here that seem related - currently, my shared steps are not in a gem, but just in a peer project. Here is what my project structure looks like:
Im my case, rubymine cannot found step definitions inside a gem.
What is gem's name?
Its just a private/personal gem that Ive made. It contains step definitions. Its not one of the "big gems".
Basically, I have step definitions inside the gem, in a path that is like features/step_definitions/web_page_steps.rb.
If I launch the tests using Terminal (I am using Watir and Cucumber in MacOs, and the MacOs version of Rubymine 6), the tests are executed correctly (it is able to find the steps, and the methods that call the steps). And everything works.
But, nevertheless, RubyMine is still giving me an alert of "Missing Step definition" for every step that is contained inside my gem.
The gem I am actually talking about is "bimblis" gem.
Anyway, how is that "it was given usability to factory-girl and other major gems"? What are the steps to give this kind of usability to a gem?
At the moment RubyMine scans for step_definition only inside 7 hardcoded gems (FactoryGirls, Aruba, Calabash and several others). We are thinking about a way to provide possibility to specify custom gems to scan for step definitions.