diff options
author | Simon Jefford <simon.jefford@gmail.com> | 2010-02-08 22:52:23 +0000 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-02-13 02:22:27 -0800 |
commit | d90a0d4e3dfdaeac421bc874a31a488c6e4ef978 (patch) | |
tree | b088dcf82f03c849aea443d638af8dd27e11ce68 /spec | |
parent | 3ba3ac55902c0db79959e133a1bb2ae833d31341 (diff) | |
download | bundler-d90a0d4e3dfdaeac421bc874a31a488c6e4ef978.tar.gz |
Allow string group names in Gemfiles
Diffstat (limited to 'spec')
-rw-r--r-- | spec/runtime/require_spec.rb | 13 |
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 |