How to incorporate Rspec with RubyMine

I hope this isn't too much of a newbie question.

I have installed the Rspec and Rspec-Rails 1.3.0 versions.  I am using JRuby version 1.5.6.

How do I incorporate Rspec in with my project.  When I bring up the console, it doesn't recognize the spec command.

Let me know if I need to provide additional info:

Thanks!

4 comments
Comment actions Permalink

I'm also using RubyMine 3.1

0
Comment actions Permalink

Should I be installing this as a gem or plug-in?

0
Comment actions Permalink

rspec and rspec-rails are gems that you can use.
Do:
- Edit Gemfile: Add
  gem 'rspec'
  gem 'rspec-rails'
- On Command line: bundle install  
- rails generate rspec:install -> This should give you spec folder and spec_helper.rb.

Then you can create the specs using Alt+Insert menu in RM.

Hope that helps.

-Kedar

0
Comment actions Permalink

It looks like I have installed properly now.  Thanks for your reply.

0

Please sign in to leave a comment.