Search code examples
rubyrspecrubymine

Making rspec work in RubyMine


I've just installed RubyMine, as long as Ruby + gem + rspec + rspec-rails.

I'm trying to make run the mini-tutorial shown on http://rspec.info/ but I'm having problems.

First, I had to modify the shown

require 'bowling'

to

require_relative 'bowling'

as I was getting a

`require': no such file to load -- bowling.

Now, even after doing this I am getting a

`<top (required)>': undefined method `describe' for main:Object (NoMethodError)

How to make rspec work in RubyMine?


Solution

  • Well, it seems to be a known issue:

    http://youtrack.jetbrains.net/issue/RUBY-8603?projectKey=RUBY

    EDIT: it did indeed seem to work.