summaryrefslogtreecommitdiff
path: root/spec/commands
diff options
context:
space:
mode:
authorshekharrajak <shekharstudy@ymail.com>2017-03-24 11:56:58 +0530
committershekharrajak <shekharstudy@ymail.com>2017-03-24 11:56:58 +0530
commitcfe4eccfc33a8f6372a7197ffae95c15e023df95 (patch)
tree8b495e330d8c327fc8fd0b5b2319bc88cad63697 /spec/commands
parentd73d78cb7754b77d3c196d6abb25146b8021af70 (diff)
downloadbundler-cfe4eccfc33a8f6372a7197ffae95c15e023df95.tar.gz
multiple groups testcase added and confirmation msg added
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/inject_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/commands/inject_spec.rb b/spec/commands/inject_spec.rb
index 4fe505d28c..fb7b68e31d 100644
--- a/spec/commands/inject_spec.rb
+++ b/spec/commands/inject_spec.rb
@@ -68,6 +68,13 @@ Usage: "bundle inject GEM VERSION"
str = "gem 'rack-obama', '> 0', :group => [:development]"
expect(gemfile).to include str
end
+
+ it "add gem with multiple group in gemfile" do
+ bundle "inject 'rack-obama' '>0' --group=development,test"
+ gemfile = bundled_app("Gemfile").read
+ str = "gem 'rack-obama', '> 0', :group => [:development, :test]"
+ expect(gemfile).to include str
+ end
end
context "when frozen" do