summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSimon Jefford <simon.jefford@gmail.com>2010-02-08 22:52:23 +0000
committerAndre Arko <andre@arko.net>2010-02-13 02:22:27 -0800
commitd90a0d4e3dfdaeac421bc874a31a488c6e4ef978 (patch)
treeb088dcf82f03c849aea443d638af8dd27e11ce68 /spec
parent3ba3ac55902c0db79959e133a1bb2ae833d31341 (diff)
downloadbundler-d90a0d4e3dfdaeac421bc874a31a488c6e4ef978.tar.gz
Allow string group names in Gemfiles
Diffstat (limited to 'spec')
-rw-r--r--spec/runtime/require_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index ff6b05d35f..ef666a6686 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -24,6 +24,10 @@ describe "Bundler.require" do
s.write "lib/mofive.rb", "puts 'five'"
end
+ build_lib "six", "1.0.0" do |s|
+ s.write "lib/six.rb", "puts 'six'"
+ end
+
gemfile <<-G
path "#{lib_path}"
gem "one", :group => :bar, :require => %w(baz qux)
@@ -31,6 +35,7 @@ describe "Bundler.require" do
gem "three", :group => :not
gem "four", :require => false
gem "five"
+ gem "six", :group => "string"
G
end
@@ -45,6 +50,14 @@ describe "Bundler.require" do
out.should == "two\nbaz\nqux"
end
+ it "requires the gems with strings as group names" do
+ run 'Bundler.require("bar")'
+ out.should == "baz\nqux"
+
+ run 'Bundler.require(:string)'
+ out.should == "six"
+ end
+
it "requires the locked gems" do
bundle :lock