[19] jruby -S rake spec fails to find 'spec/rake/spectask'
----------------------------------------------------------

                 Key: JRUBY-4156
                 URL: http://jira.codehaus.org/browse/JRUBY-4156
             Project: JRuby
          Issue Type: Bug
          Components: Application Error, Ruby 1.9
    Affects Versions: JRuby 1.4.0RC2
            Reporter: Thomas E Enebo


Problem in 1.9 mode loading rspec's rake spectask:

{noformat}
require 'spec/rake/spectask'
 
Spec::Rake::SpecTask.new :cov do |t|
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
  t.spec_opts = ['--options', 'spec/spec.opts']
end
 
Spec::Rake::SpecTask.new :spec do |t|
  t.spec_opts = ['--options', 'spec/spec.opts']
end
 
namespace :spec do
  FileList['spec/**/*_spec.rb'].each do |file|
    spec = file.split('/').last[0...-8]
    desc "Run the #{spec} spec"
    Spec::Rake::SpecTask.new spec do |t|
      t.spec_files = [file]
      t.spec_opts = ['--options', 'spec/spec.opts']
    end
  end
end
{noformat}

No problem in 1.8 mode. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to