diff options
author | Andre Arko <andre@arko.net> | 2011-08-17 23:15:15 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-08-17 23:15:15 -0700 |
commit | a0d97c4eaecee05e483d07542e6cf0f3407b53a0 (patch) | |
tree | c6cf19143c92b241110fb419e9621f64ca63de26 /spec/runtime/require_spec.rb | |
parent | 8937429f8402a50f53780034dbacc2321c52170c (diff) | |
download | bundler-a0d97c4eaecee05e483d07542e6cf0f3407b53a0.tar.gz |
Also try to require name/space when gem is name-space
Diffstat (limited to 'spec/runtime/require_spec.rb')
-rw-r--r-- | spec/runtime/require_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb index 2f3a515d..795fd6cb 100644 --- a/spec/runtime/require_spec.rb +++ b/spec/runtime/require_spec.rb @@ -76,6 +76,24 @@ describe "Bundler.require" do out.should == "two\nfive" end +end + +describe "Bundler.require" do + + it "requires gems that use dashes to indicate namespaces" do + build_lib "name-spaces", "1.0.0", :no_default => true do |s| + s.write "lib/name/spaces.rb", "puts 'worked'" + end + + gemfile <<-G + gem "name-spaces", :path => "#{lib_path}" + G + + run "Bundler.require" + out.should == 'worked' + end + + it "raises an exception if a require is specified but the file does not exist" do gemfile <<-G path "#{lib_path}" |