aboutsummaryrefslogtreecommitdiffstats
path: root/spec/runtime/require_spec.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-04-26 17:01:27 -0700
committerCarl Lerche <carllerche@mac.com>2010-04-26 17:12:18 -0700
commit35210a44ac99a67dace9cdfce9dcf4e0a44785e8 (patch)
tree2d4d032316a6de9f2c7b0a7005abc2d452ded448 /spec/runtime/require_spec.rb
parent172317b26317ffcde36696d02a08c65cb2943b60 (diff)
downloadbundler-35210a44ac99a67dace9cdfce9dcf4e0a44785e8.tar.gz
Remove deprecated lock specs
Diffstat (limited to 'spec/runtime/require_spec.rb')
-rw-r--r--spec/runtime/require_spec.rb43
1 files changed, 0 insertions, 43 deletions
diff --git a/spec/runtime/require_spec.rb b/spec/runtime/require_spec.rb
index aac0a862..b6eb2c93 100644
--- a/spec/runtime/require_spec.rb
+++ b/spec/runtime/require_spec.rb
@@ -71,33 +71,6 @@ describe "Bundler.require" do
out.split("\n").sort.should == ['seven', 'three']
end
- it "requires the locked gems" do
- bundle :lock
-
- def locked_require(*args)
- env = File.expand_path(".bundle/environment.rb", Dir.pwd)
- @out = ruby("require '#{env}'; Bundler.require(#{args.collect { |a| a.inspect }.join(", ")})")
- end
-
- # default group
- check locked_require.should == "two"
-
- # specific group
- check locked_require(:bar).should == "baz\nqux"
-
- # default and specific group
- check locked_require(:default, :bar).should == "two\nbaz\nqux"
-
- # specific group given as a string
- check locked_require('bar').should == "baz\nqux"
-
- # specific group declared as a string
- check locked_require(:string).should == "six"
-
- # required in resolver order instead of gemfile order
- locked_require(:not).split("\n").sort.should == ['seven', 'three']
- end
-
it "allows requiring gems with non standard names explicitly" do
run "Bundler.require ; require 'mofive'"
out.should == "two\nfive"
@@ -119,22 +92,6 @@ describe "Bundler.require" do
out.should == 'no such file to load -- fail'
end
- describe "requiring the environment directly" do
- it "requires the locked gems" do
- bundle :lock
- env = bundled_app(".bundle/environment.rb")
-
- out = ruby("require '#{env}'; Bundler.setup; Bundler.require")
- check out.should == "two"
-
- out = ruby("require '#{env}'; Bundler.setup(:bar); Bundler.require(:bar)")
- check out.should == "baz\nqux"
-
- out = ruby("require '#{env}'; Bundler.setup(:default, :bar); Bundler.require(:default, :bar)")
- out.should == "two\nbaz\nqux"
- end
- end
-
describe "using bundle exec" do
it "requires the locked gems" do
bundle :lock