summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Manacorda <lorenzo.manacorda@gmail.com>2015-09-16 17:02:16 +0200
committerLorenzo Manacorda <lorenzo.manacorda@gmail.com>2015-09-16 17:02:16 +0200
commite19b7eaece4f4dc23951bb56704d7a94c751b85e (patch)
treec5e7827abbbffd41c24e11601f980696bb176a94
parent983328292e275de444ecee59715c95efd21bab1e (diff)
downloadbundler-e19b7eaece4f4dc23951bb56704d7a94c751b85e.tar.gz
add test to check deprecation
-rw-r--r--spec/commands/install_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb
index 1b60c26409..b663426af7 100644
--- a/spec/commands/install_spec.rb
+++ b/spec/commands/install_spec.rb
@@ -393,7 +393,7 @@ describe "bundle install with gem sources" do
end
describe "when using the --path flag" do
- it "print an error and exit" do
+ it "prints an error and exits" do
gemfile <<-G
gem 'rack'
G
@@ -404,6 +404,18 @@ describe "bundle install with gem sources" do
end
end
+ describe "when using the --system flag" do
+ it "prints an error and exit" do
+ gemfile <<-G
+ gem 'rack'
+ G
+
+ bundle "install --system"
+
+ expect(err).to include("Unknown switches '--system'")
+ end
+ end
+
describe "using the cross-application user cache" do
let(:source) { "http://localgemserver.test" }
let(:source2) { "http://gemserver.example.org" }