diff options
author | Kohei Hasegawa <ameutau@gmail.com> | 2013-11-28 00:00:42 +0900 |
---|---|---|
committer | Kohei Hasegawa <ameutau@gmail.com> | 2013-11-28 00:00:42 +0900 |
commit | fcb3fa8d58dcf63897c683acef283534c6fe6e90 (patch) | |
tree | 0c6d3b419fdef81ffc92674286e2fcfcfeb671b1 /spec/update | |
parent | 5043fdf40e45381d324093f77bf77361d56139b9 (diff) | |
download | bundler-fcb3fa8d58dcf63897c683acef283534c6fe6e90.tar.gz |
Add 'bundle update --group' option
Diffstat (limited to 'spec/update')
-rw-r--r-- | spec/update/gems_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
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 |