RubyMine 7.0.1 Web Help

RubyMine supports RSpec up to version 3.0.x. This section describes how to use RSpec in plain Ruby projects, and in Rails applications:

RSpec 2.x note

For RSpec 2.x, special configuration is required for the coverage options. The Rake task that launches RSpec 2.x tests with the code coverage enabled, need RCOV_OPTS environment variable, and should be modified as shown below:

# rspec 2.x
require "rake"
require "rspec/core/rake_task"

desc "Run all specs with rcov""test_cov") do |t|
  t.rcov      = true
  t.rcov_opts = ENV["RCOV_OPTS"]

Zeus note

If you are going to run RSpec tests under Zeus server, make sure to use Zeus version 0.13.4.pre2, or higher.

See Also


External Links:

Web Resources: