Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add spec for gemspec require_path order in $LOAD_PATH

  • Loading branch information...
commit 6f0b911ca3b51bd8ecc46f216969539c4382b5ff 1 parent 9ef8a2e
@indirect indirect authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 spec/runtime/setup_spec.rb
View
18 spec/runtime/setup_spec.rb
@@ -230,4 +230,22 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.