Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Failing spec because no vendor_ruby directory #986

Closed
voxik opened this Issue · 3 comments

3 participants

@voxik

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

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

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
Collaborator

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.