aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-10-02 18:33:13 -0700
committerAndre Arko <andre@arko.net>2012-10-02 18:33:13 -0700
commit5ceee39cb47f7418b0ae872a01d8b22cbc0a0bea (patch)
tree436d09e0200ac1c179067fe9de4293bb0fd07a33 /spec/integration
parent0d2f5f548602b3c2ef94d88fcdb50e5bc60d8b3f (diff)
downloadbundler-5ceee39cb47f7418b0ae872a01d8b22cbc0a0bea.tar.gz
don't lock development changes while injecting
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/inject.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/integration/inject.rb b/spec/integration/inject.rb
index 8c20ef70..e57eeb03 100644
--- a/spec/integration/inject.rb
+++ b/spec/integration/inject.rb
@@ -63,5 +63,16 @@ describe "bundle inject" do
config = YAML.load(bundled_app(".bundle/config").read)
config["BUNDLE_FROZEN"].should == "1"
end
+
+ it "doesn't allow Gemfile changes" do
+ gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack-obama"
+ G
+ bundle "inject 'rack' '> 0'"
+ out.should match(/trying to install in deployment mode after changing/)
+
+ bundled_app("Gemfile.lock").read.should_not match(/rack-obama/)
+ end
end
end \ No newline at end of file