Posted 25 days ago. Visible to the public. Repeats.

How to make RubyMine aware of Cucumber steps defined in gems

If your Ruby project includes a gem like Spreewald that comes with some external step definition, RubyMine does not know about them by default and will highlight the step as an undefined reference:

Image

To link these external step definitions to RubyMine, add the corresponding gems to your RubyMine-Settings:

  • Go to Settings (ctrl + alt + s)
  • Go to Languages and Frameworks
  • Go to Cucumber
  • There, add your gem (e.g "spreewald") via the little "+" from the bar on the right .

You might have to restart RubyMine to see the expected result.

Now, RubyMine no longer complains about undefined step definitions and allows you to dig into the definition via ctrl + b or ctrl + click.

Image

Does your version of Ruby on Rails still receive security updates?
Rails LTS provides security patches for old versions of Ruby on Rails (3.2 and 2.3).

Owner of this card:

Avatar
Stefan Wagner
Last edit:
15 days ago
by Besprechungs-PC
Attachments:
cucumber_highlighted.png, no_highlighting.png
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Stefan Wagner to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more