diff options
author | Andre Arko <andre@arko.net> | 2010-07-01 19:56:56 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-07-01 19:56:56 -0700 |
commit | 6f0b911ca3b51bd8ecc46f216969539c4382b5ff (patch) | |
tree | 09b88b804e7f76a8a39cccbae53b3ff2894518f2 | |
parent | 9ef8a2e56ecd08cbfe1208bf6a1c27c80b129c18 (diff) | |
download | bundler-6f0b911ca3b51bd8ecc46f216969539c4382b5ff.tar.gz |
Add spec for gemspec require_path order in $LOAD_PATH
-rw-r--r-- | spec/runtime/setup_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 44b4b71f3e..9d8f4f23c2 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -230,4 +230,22 @@ describe "Bundler.setup" do err.should be_empty end + it "should prepend gemspec require paths to $LOAD_PATH in order" do + update_repo2 do + build_gem("requirepaths") do |s| + s.write("lib/rq.rb", "puts 'yay'") + s.write("src/rq.rb", "puts 'nooo'") + s.require_paths = ["lib", "src"] + end + end + + install_gemfile <<-G + source "file://#{gem_repo2}" + gem "requirepaths", :require => nil + G + + run "require 'rq'" + out.should == "yay" + end + end |