#325 √ resolved
Roman Chernyatchik

Problem with running spec task, when several ruby interpreters are installed

Reported by Roman Chernyatchik | March 5th, 2008 @ 04:37 PM | in 1.1.4

I have several ruby interpreters installed on my machine. Unfortunately

"Spec::Rake::SpecTask.define"(plugins/rspec/lib/spec/rake/spectask.rb) method uses ruby interpreter from PATH

variable, so I cannot use any of my ruby interpreter without patching PATH environment variable.

i.e.:

task name do
  RakeFileUtils.verbose(verbose) do
    unless spec_file_list.empty?
      cmd = "ruby "
      ....

I suggest to evaluate path to current ruby interpreter as in "rake.rb"

i.e. :

task name do
  RakeFileUtils.verbose(verbose) do
    unless spec_file_list.empty?
      cmd = "#{File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])} "
      ....

-------------

RSpec Plugin: RSpec-1.1.3 (build 20080131122909)

(see http://rubyforge.org/tracker/ind...)

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins