diff options
author | Kenta Murata <mrkn@mrkn.jp> | 2013-11-02 05:55:14 +0900 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2013-11-09 18:39:51 -0500 |
commit | c21741dd08cb95dff6e0215d03e1d8ae9aa38cf8 (patch) | |
tree | 4530493370ba8adf448ca5d5c5556c8e34ef7b0d | |
parent | 473f0e8b39eec8813ae5c5881b4dacd7201f8f64 (diff) | |
download | bundler-c21741dd08cb95dff6e0215d03e1d8ae9aa38cf8.tar.gz |
Add tests for parallel update
-rw-r--r-- | spec/realworld/parallel_update_spec.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/realworld/parallel_update_spec.rb b/spec/realworld/parallel_update_spec.rb new file mode 100644 index 0000000000..37f1d64e5a --- /dev/null +++ b/spec/realworld/parallel_update_spec.rb @@ -0,0 +1,30 @@ +require 'spec_helper' + +describe "updating dependencies parallely", :realworld => true do + before :each do + install_gemfile <<-G + source "https://rubygems.org" + gem 'activesupport', '~> 3.2.13' + gem 'faker', '~> 1.1.2' + G + end + + it "installs gems parallely" do + gemfile <<-G + source "https://rubygems.org" + gem 'activesupport', '~> 4.0.0' + gem 'faker', '~> 1.1.2' + G + + bundle :update, :jobs => 4 + + bundle "show activesupport" + expect(out).to match(/activesupport-4\.0\.\d+/) + + bundle "show faker" + expect(out).to match(/faker/) + + bundle "config jobs" + expect(out).to match(/: "4"/) + end +end |