RSpec keywords not recognised in RubyMine Editor

已完成

RSpec tests run OK from the CLI & with Run > Run... Menu item in RubyMine

But the editor does not recognise RSpec keywords like describe, it... and autocompletion does not work when writing tests. How can I fix this ?

I am using

  • RubyMine 2019.3.3
  • Build #RM-193.6494.37, built on February 11, 2020
  • macOS 10.14.6
  • Non-Bundled Plugins: AngularJS, IdeaVIM, NodeJS, com.intellij.plugins.html.instantEditing, training
  • rbenv 1.1.2
  • Ruby 2.5.6

0

Hello,

could you please specify whether your Gemfile contains rspec gem and it's listed in External libraries?

0

Hi

I wasn't using bundler before.

Updated the Gemfile and now its working fine.

Thank you

0

You're welcome, good to know it works fine now.

0

请先登录再写评论。