Failing spec because no vendor_ruby directory #986

Closed
voxik opened this Issue Jan 27, 2011 · 3 comments

Projects

None yet

3 participants

@voxik
Contributor
voxik commented Jan 27, 2011

Hello,

I have this failing spec on my Fedora:

$ spec spec/runtime/setup_spec.rb -l 246
F

1)
NoMethodError in 'Bundler.setup crippling rubygems by hiding system gems when the ruby stdlib is a substring of Gem.path does not reject the stdlib from $LOAD_PATH'
private method `split' called for nil:NilClass
./spec/runtime/setup_spec.rb:247:

Finished in 1.321372 seconds

1 example, 1 failure

I expect that that is because I have no vendor_ruby folder. Is this Mac specific?

@voxik
Contributor
voxik commented Jul 7, 2011

Unfortunately this is still and issue for Fedora Rawhide and Bundler 1.0.15:

  1. Bundler.setup integrate with rubygems by hiding system gems when the ruby stdlib is a substring of Gem.path does not reject the stdlib from $LOAD_PATH
    Failure/Error: substring = "/" + $LOAD_PATH.find{|p| p =~ /vendor_ruby/ }.split("/")[2]
    NoMethodError:
    private method `split' called for nil:NilClass

    /builddir/build/BUILD/rubygem-bundler-1.0.15/usr/lib/ruby/gems/1.8/gems/bundler-1.0.15/spec/runtime/setup_spec.rb:247

@voxik
Contributor
voxik commented Jul 12, 2012

Since the vendor directory location might be specified using "--with-vendordir" configuration option, the test suite should use RbConfig to obtain the correct vendor dir location.

@mscottford

@voxik I'm not sure how to test this. If you're still running into this problem, will you please provide a set of steps to reproduce it? Thanks!

@indirect indirect closed this Jan 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment