diff options
author | Carl Lerche <carllerche@mac.com> | 2010-02-10 22:11:18 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-02-10 22:11:18 -0800 |
commit | 5f5ac21b4161b1638ac196e554439d2aab9799e4 (patch) | |
tree | b4ca2dc33d30cbd992219ce5a87319c4e5f90e4f /spec/runtime/setup_spec.rb | |
parent | fc55262bc6183baefb329b9088a2d5966a7e33be (diff) | |
download | bundler-5f5ac21b4161b1638ac196e554439d2aab9799e4.tar.gz |
Generate .bundle/environment.rb on Bundle.setup if the bundle is locked and .bundle/environment.rb does not exist.
Diffstat (limited to 'spec/runtime/setup_spec.rb')
-rw-r--r-- | spec/runtime/setup_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 582424b26a..982e024bac 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -75,4 +75,21 @@ describe "Bundler.setup" do out.should == "WIN" end end + + describe "when locked" do + it "regenerates .bundle/environment.rb if it does not exist" do + system_gems "rack-1.0.0" + + gemfile <<-G + gem "rack" + G + + bundle :lock + + bundled_app('.bundle/environment.rb').delete + + should_be_installed "rack 1.0.0" + bundled_app('.bundle/environment.rb').should exist + end + end end
\ No newline at end of file |