From fcb3fa8d58dcf63897c683acef283534c6fe6e90 Mon Sep 17 00:00:00 2001 From: Kohei Hasegawa Date: Thu, 28 Nov 2013 00:00:42 +0900 Subject: Add 'bundle update --group' option --- spec/update/gems_spec.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'spec/update') diff --git a/spec/update/gems_spec.rb b/spec/update/gems_spec.rb index 26a367d0..27f42a29 100644 --- a/spec/update/gems_spec.rb +++ b/spec/update/gems_spec.rb @@ -83,6 +83,22 @@ describe "bundle update" do expect(out).not_to match(/Fetching source index/) end end + + describe "with --group option" do + it "should update only specifed group gems" do + install_gemfile <<-G + source "file://#{gem_repo2}" + gem "activesupport", :group => :development + gem "rack" + G + update_repo2 do + build_gem "activesupport", "3.0" + end + bundle "update --group development" + should_be_installed "activesupport 3.0" + should_not_be_installed "rack 1.2" + end + end end describe "bundle update in more complicated situations" do -- cgit v1.2.3