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!
请先登录再写评论。
I'm also using RubyMine 3.1
Should I be installing this as a gem or plug-in?
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
It looks like I have installed properly now. Thanks for your reply.