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)
Comments and changes to this ticket
-
David Chelimsky March 5th, 2008 @ 09:44 PM
- → Assigned user changed from to David Chelimsky
- → State changed from new to open
Seems reasonable to me. Anybody else?
-
-

-

Brian Takita May 25th, 2008 @ 09:10 PM
- → State changed from open to resolved
-
David Chelimsky May 27th, 2008 @ 07:41 AM
- → Milestone changed from to 1.1.4
Brian - can you please add a link to the changeset when you close a 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.
