diff options
author | shekharrajak <shekharstudy@ymail.com> | 2017-02-02 00:53:51 +0530 |
---|---|---|
committer | shekharrajak <shekharstudy@ymail.com> | 2017-02-02 10:33:58 +0530 |
commit | a3ff7e2c0d21a0a96e68ee72d86e7f6a371401fe (patch) | |
tree | a9b60daf2304c828f174e7c5254666759bcbae9a | |
parent | a2c8f41e85c0293d5bdd0c0ea12f9275f6de2b5d (diff) | |
download | bundler-a3ff7e2c0d21a0a96e68ee72d86e7f6a371401fe.tar.gz |
test case added
-rw-r--r-- | spec/commands/inject_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/commands/inject_spec.rb b/spec/commands/inject_spec.rb index 96209bda7b..dd5e22498b 100644 --- a/spec/commands/inject_spec.rb +++ b/spec/commands/inject_spec.rb @@ -42,6 +42,16 @@ RSpec.describe "bundle inject" do end end + context "incorrect arguments" do + it "fails when more than 2 arguments are passed" do + bundle "inject gem_name 1 v" + expect(out).to eq(<<-E.strip) +ERROR: "bundle inject" was called with arguments ["gem_name", "1", "v"] +Usage: "bundle inject GEM VERSION" + E + end + end + context "when frozen" do before do bundle "install" |