aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime/require_spec.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-02-03 23:44:56 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-02-03 23:44:56 -0800
commit4a5bb2a50994a51838c1986f3166102b62df5168 (patch)
tree7400bd7b50d7b9f77a46b2050e7a03cbee5eb066 /spec/runtime/require_spec.rb
parent427bf18b115bd60065f54d28398f8ac764cb9bc7 (diff)
downloadbundler-4a5bb2a50994a51838c1986f3166102b62df5168.tar.gz
Support :require => false to skip the gem on Bundler.require
Diffstat (limited to 'spec/runtime/require_spec.rb')
-rw-r--r--spec/runtime/require_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index f904b4cc..d96585cb 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -16,13 +16,19 @@ describe "Bundler.require" do
s.write "lib/three.rb", "puts 'three'"
end
+ build_lib "four", "1.0.0" do |s|
+ s.write "lib/four.rb", "puts 'four'"
+ end
+
gemfile <<-G
path "#{lib_path('one-1.0.0')}"
path "#{lib_path('two-1.0.0')}"
path "#{lib_path('three-1.0.0')}"
+ path "#{lib_path('four-1.0.0')}"
gem "one", :group => :bar, :require => %w(baz qux)
gem "two"
gem "three", :group => :not
+ gem "four", :require => false
G
end